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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-05-15 12:25:42 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-05-15 12:25:42 +0400
commit4fcd44d3897403e6c87abf5a6020153c0d220d2d (patch)
tree8f752616508f1645fb79627df86c8bdbf62ab935 /source/blender/blenkernel/intern/DerivedMesh.c
parentcd089ea321666817336e5bb7b3eba7d4ecc74479 (diff)
Fix #35362: using dyntopo gives wrong render results
Made it so dynamic topology will flush changes from SculptSession->bm to Object->me. Used the same approach as sculptsession_bm_to_me does, but instead of using DAG_id_tag_update used in-place DerivedMesh release. Otherwise this lead to some update issues resulting in missed object after render. Also fixed multires modifier not being applied for render when rendering from dyntopo sculpt mode. P.S. Apparently sculpsession_bm_to_me was declared in BKE_paint.h but implemented in object.c. Rather confusing and better make it so this functions are declared and implemented in consistent files. But will solve this in a separate commit.
Diffstat (limited to 'source/blender/blenkernel/intern/DerivedMesh.c')
-rw-r--r--source/blender/blenkernel/intern/DerivedMesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index b728bbcf047..6e332559e29 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -1527,7 +1527,7 @@ static void mesh_calc_modifiers(Scene *scene, Object *ob, float (*inputVertexCos
{
int unsupported = 0;
- if (sculpt_dyntopo)
+ if (sculpt_dyntopo && !useRenderParams)
unsupported = TRUE;
if (scene->toolsettings->sculpt->flags & SCULPT_ONLY_DEFORM)