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
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-09-16 12:04:54 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-09-17 20:30:46 +0300
commit66d7f9c8f0cf9418ffb7946a3fcb52574d51b56a (patch)
treec8d2eaf51201117e3b9dfa9936c41a63c565445b /source/blender/editors
parent627132496d18c09a79899a23e3b964da2b9ad080 (diff)
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
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/interface_templates.c8
1 files changed, 0 insertions, 8 deletions
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);
}