[Bf-blender-cvs] [fb7d8e2f4b8] master: UI: Fix check for constraint panel default expansion

Hans Goudey noreply at git.blender.org
Fri Jun 19 20:19:50 CEST 2020


Commit: fb7d8e2f4b87307a749537f16e80800af09cf5ae
Author: Hans Goudey
Date:   Fri Jun 19 14:19:41 2020 -0400
Branches: master
https://developer.blender.org/rBfb7d8e2f4b87307a749537f16e80800af09cf5ae

UI: Fix check for constraint panel default expansion

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

M	source/blender/blenkernel/intern/constraint.c

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

diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index f215297c8a2..c5b70cf6924 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -5417,7 +5417,7 @@ static bConstraint *add_new_constraint_internal(const char *name, short type)
 
   /* Only open the main panel when constraints are created, not the subpanels. */
   con->ui_expand_flag = (1 << 0);
-  if (type == CONSTRAINT_TYPE_ACTION || CONSTRAINT_TYPE_SPLINEIK) {
+  if (ELEM(type, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_SPLINEIK)) {
     /* Expand the two subpanels in the cases where the main panel barely has any properties. */
     con->ui_expand_flag |= (1 << 1) | (1 << 2);
   }



More information about the Bf-blender-cvs mailing list