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:
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r--source/blender/src/drawipo.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c
index 2018d0e75a6..0e7476bbe82 100644
--- a/source/blender/src/drawipo.c
+++ b/source/blender/src/drawipo.c
@@ -1857,11 +1857,17 @@ static void ipo_editvertex_buts(uiBlock *block, SpaceIpo *si, float min, float m
void do_ipobuts(unsigned short event)
{
- Object *ob= OBACT;
+ Object *ob;
EditIpo *ei;
if(G.sipo->from==NULL) return;
+ /* use G.sipo->from (which should be an object) so that pinning ipo's will still work ok */
+ if(GS(G.sipo->from->name) == ID_OB)
+ ob= (Object *)(G.sipo->from);
+ else
+ ob= OBACT;
+
switch(event) {
case B_IPO_REDR:
ei= get_active_editipo();