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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-06-19 21:19:41 +0300
committerHans Goudey <h.goudey@me.com>2020-06-19 21:19:41 +0300
commitfb7d8e2f4b87307a749537f16e80800af09cf5ae (patch)
treea97e1f9d744f4e753be30292701b1e10090843da /source
parent0ded6f55259bbfcaf48d521b0fcefa082179b349 (diff)
UI: Fix check for constraint panel default expansion
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/constraint.c2
1 files changed, 1 insertions, 1 deletions
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);
}