[Bf-blender-cvs] [a30c8168a01] temp-nla-strip-alignment: - due to last commit, no longer need C-side python UI for alignment properties
Wayde Moss
noreply at git.blender.org
Thu Dec 10 06:13:39 CET 2020
Commit: a30c8168a0181e3a267c21270f21b03ab4048548
Author: Wayde Moss
Date: Sun Nov 29 15:14:09 2020 -0500
Branches: temp-nla-strip-alignment
https://developer.blender.org/rBa30c8168a0181e3a267c21270f21b03ab4048548
- due to last commit, no longer need C-side python UI for alignment properties
===================================================================
M source/blender/editors/space_nla/nla_buttons.c
===================================================================
diff --git a/source/blender/editors/space_nla/nla_buttons.c b/source/blender/editors/space_nla/nla_buttons.c
index dcf96e6e790..083fd641dc1 100644
--- a/source/blender/editors/space_nla/nla_buttons.c
+++ b/source/blender/editors/space_nla/nla_buttons.c
@@ -415,25 +415,6 @@ static void nla_panel_properties(const bContext *C, Panel *panel)
uiItemR(row, &strip_ptr, "use_reverse", 0, NULL, ICON_NONE);
uiItemR(column, &strip_ptr, "use_animated_time_cyclic", 0, NULL, ICON_NONE);
-
- /** GG: I don't know why, but implementing UI in python results in wrong rna path (rooting from
- * RNA Scene type) for blend xform properties and updates don't work properly.
- *
- * Here, i guess since we specify the pointerRNA as a strip, it will be correct?
- */
- NlaStrip *strip = ((NlaStrip *)strip_ptr.data);
-
- // temporary: only show 1st one for testing purposes, so when xform changes, it updates nla
- if (strip->blend_transforms.first) {
-
- PointerRNA blend_rna;
- RNA_pointer_create(
- strip_ptr.owner_id, &RNA_NlaBlendTransform, strip->blend_transforms.first, &blend_rna);
-
- uiItemR(column, &blend_rna, "location", 0, NULL, ICON_NONE);
- uiItemR(column, &blend_rna, "euler", 0, NULL, ICON_NONE);
- uiItemR(column, &blend_rna, "scale", 0, NULL, ICON_NONE);
- }
}
}
More information about the Bf-blender-cvs
mailing list