From 7c47b338c0e039c4dbcbc35ef682b55aaa0ef871 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 4 Jul 2018 16:43:00 +0200 Subject: Depsgraph: Don't force copy-on-write when shading changes Shading is supposed to be dealing with draw manager batch cached thingamajigs, but was causing full object update. This was causing both flickering in sculpt mode (PBVH was removed, why it was SOMETIMES restored before draw is a mystery), and was also causing things to be really slow. --- source/blender/depsgraph/intern/nodes/deg_node_component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/depsgraph') diff --git a/source/blender/depsgraph/intern/nodes/deg_node_component.h b/source/blender/depsgraph/intern/nodes/deg_node_component.h index 5e79dc1c685..e4a77f2e72b 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node_component.h +++ b/source/blender/depsgraph/intern/nodes/deg_node_component.h @@ -189,7 +189,7 @@ DEG_COMPONENT_NODE_DECLARE_GENERIC(Particles); DEG_COMPONENT_NODE_DECLARE_GENERIC(Proxy); DEG_COMPONENT_NODE_DECLARE_GENERIC(Pose); DEG_COMPONENT_NODE_DECLARE_GENERIC(Sequencer); -DEG_COMPONENT_NODE_DECLARE_GENERIC(Shading); +DEG_COMPONENT_NODE_DECLARE_NO_COW_TAG_ON_UPDATE(Shading); DEG_COMPONENT_NODE_DECLARE_GENERIC(ShadingParameters); DEG_COMPONENT_NODE_DECLARE_GENERIC(Transform); DEG_COMPONENT_NODE_DECLARE_NO_COW_TAG_ON_UPDATE(ObjectFromLayer); -- cgit v1.2.3