[Bf-blender-cvs] [66d7f9c8f0c] master: Cleanup: remove unneeded check in uiTemplateConstraintHeader

Philipp Oeser noreply at git.blender.org
Thu Sep 17 19:34:48 CEST 2020


Commit: 66d7f9c8f0cf9418ffb7946a3fcb52574d51b56a
Author: Philipp Oeser
Date:   Wed Sep 16 11:04:54 2020 +0200
Branches: master
https://developer.blender.org/rB66d7f9c8f0cf9418ffb7946a3fcb52574d51b56a

Cleanup: remove unneeded check in uiTemplateConstraintHeader

Following rB7a0a60dde8b4, checking for temporary IK constraints in
uiTemplateConstraintHeader is not needed anymore (since the whole panel
will now be skipped earlier for those).

Differential Revision: https://developer.blender.org/D8902

===================================================================

M	source/blender/editors/interface/interface_templates.c

===================================================================

diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 316525fa645..a1c7ba711cd 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -2694,14 +2694,6 @@ void uiTemplateConstraintHeader(uiLayout *layout, PointerRNA *ptr)
 
   UI_block_lock_set(uiLayoutGetBlock(layout), (ob && ID_IS_LINKED(ob)), ERROR_LIBDATA_MESSAGE);
 
-  /* hrms, the temporal constraint should not draw! */
-  if (con->type == CONSTRAINT_TYPE_KINEMATIC) {
-    bKinematicConstraint *data = con->data;
-    if (data->flag & CONSTRAINT_IK_TEMP) {
-      return;
-    }
-  }
-
   draw_constraint_header(layout, ob, con);
 }



More information about the Bf-blender-cvs mailing list