Page Menu
Home
Search
Configure Global Search
Log In
Paste
P629
Fix for T55170?
Active
Public
Actions
Authored by
Germano Cavalcante (mano-wii)
on Mar 5 2018, 6:42 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
BF Blender: 2.8
Subscribers
None
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
index c8b9702621e..17ca1733d42 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
@@ -49,6 +49,7 @@
#include "BLI_threads.h"
#include "BLI_string.h"
+#include "BKE_curve.h"
#include "BKE_global.h"
#include "BKE_idprop.h"
#include "BKE_layer.h"
@@ -680,6 +681,7 @@ ID *deg_update_copy_on_write_datablock(const Depsgraph *depsgraph,
ListBase gpumaterial_backup;
ListBase *gpumaterial_ptr = NULL;
Mesh *mesh_evaluated = NULL;
+ CurveCache *curve_cache = NULL;
short base_flag = 0;
if (check_datablock_expanded(id_cow)) {
switch (id_type) {
@@ -729,6 +731,10 @@ ID *deg_update_copy_on_write_datablock(const Depsgraph *depsgraph,
object->data = mesh_evaluated->id.orig_id;
}
}
+ /* Store curve cache and make sure we don't free it. */
+ curve_cache = object->curve_cache;
+ object->curve_cache = NULL;
+
/* Make a backup of base flags. */
base_flag = object->base_flag;
break;
@@ -764,6 +770,9 @@ ID *deg_update_copy_on_write_datablock(const Depsgraph *depsgraph,
((Mesh *)mesh_evaluated->id.orig_id)->edit_btmesh;
}
}
+ if (curve_cache != NULL) {
+ object->curve_cache = curve_cache;
+ }
object->base_flag = base_flag;
}
return id_cow;
Event Timeline
Germano Cavalcante (mano-wii)
created this paste.
Mar 5 2018, 6:42 PM
Germano Cavalcante (mano-wii)
mentioned this in
D3095: Eevee: Optimize shadows drawing
.
Mar 5 2018, 6:45 PM
Germano Cavalcante (mano-wii)
changed the title of this paste from
suggestion for D3095
to
Fix for T55170?
.
May 23 2018, 9:49 PM
Germano Cavalcante (mano-wii)
edited the content of this paste.
(Show Details)
Germano Cavalcante (mano-wii)
mentioned this in
T55170: Crash adding new curve
.
Log In to Comment