Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-03 19:36:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-03 19:36:02 +0400
commit9db3f2368cb933002a48291c69170922eeb0256d (patch)
treea7819cc85455bc9bac511e368c42f5ba2406e9f4 /intern/cycles/blender/blender_util.h
parenta434ab54c668f25045fe49098b3e4b5cf4b7e6ab (diff)
Cycles: use mikktspace now for computing tangents from UV maps. This avoids ugly
averaged tangents at UV seams but instead now the seams will show as discontinuities in the tangent.
Diffstat (limited to 'intern/cycles/blender/blender_util.h')
-rw-r--r--intern/cycles/blender/blender_util.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/intern/cycles/blender/blender_util.h b/intern/cycles/blender/blender_util.h
index 98460036d17..df1e99882b8 100644
--- a/intern/cycles/blender/blender_util.h
+++ b/intern/cycles/blender/blender_util.h
@@ -52,24 +52,6 @@ static inline void colorramp_to_array(BL::ColorRamp ramp, float4 *data, int size
}
}
-static inline void object_remove_mesh(BL::BlendData data, BL::Mesh mesh)
-{
- /* TODO: BlendData.meshes ideally should be also a subclass of BlendDataMeshes */
- BL::BlendDataMeshes mesh_data(data.ptr);
-
- mesh_data.remove(mesh);
-}
-
-static inline void object_create_duplilist(BL::Object self, BL::Scene scene)
-{
- self.dupli_list_create(scene, 2);
-}
-
-static inline void object_free_duplilist(BL::Object self)
-{
- self.dupli_list_clear();
-}
-
static inline bool BKE_object_is_modified(BL::Object self, BL::Scene scene, bool preview)
{
return self.is_modified(scene, (preview)? (1<<0): (1<<1))? true: false;
@@ -88,11 +70,6 @@ static inline string image_user_file_path(BL::ImageUser iuser, BL::Image ima, in
return string(filepath);
}
-static inline void scene_frame_set(BL::Scene scene, int frame)
-{
- scene.frame_set(frame, 0.0f);
-}
-
/* Utilities */
static inline Transform get_transform(BL::Array<float, 16> array)