clear loc/size/rot wasnt updating child transformations, also removed some warnings

This commit is contained in:
Campbell Barton 2009-12-13 11:49:17 +00:00
parent b3f03250de
commit 646575f8d9
2 changed files with 19 additions and 10 deletions

@ -105,8 +105,11 @@ static int object_location_clear_exec(bContext *C, wmOperator *op)
} }
CTX_DATA_END; CTX_DATA_END;
/* this is needed so children are also updated */
DAG_ids_flush_update(0);
WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL); WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL);
return OPERATOR_FINISHED; return OPERATOR_FINISHED;
} }
@ -241,6 +244,9 @@ static int object_rotation_clear_exec(bContext *C, wmOperator *op)
} }
CTX_DATA_END; CTX_DATA_END;
/* this is needed so children are also updated */
DAG_ids_flush_update(0);
WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL); WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL);
return OPERATOR_FINISHED; return OPERATOR_FINISHED;
@ -299,6 +305,9 @@ static int object_scale_clear_exec(bContext *C, wmOperator *op)
} }
CTX_DATA_END; CTX_DATA_END;
/* this is needed so children are also updated */
DAG_ids_flush_update(0);
WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL); WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL);
return OPERATOR_FINISHED; return OPERATOR_FINISHED;

@ -156,17 +156,17 @@ public:
printf("BGE STATS!\n"); printf("BGE STATS!\n");
printf("\nAssets...\n"); printf("\nAssets...\n");
printf("\t m_worldinfos: %d\n", m_worldinfos.size()); printf("\t m_worldinfos: %d\n", (int)m_worldinfos.size());
printf("\t m_polymaterials: %d\n", m_polymaterials.size()); printf("\t m_polymaterials: %d\n", (int)m_polymaterials.size());
printf("\t m_meshobjects: %d\n", m_meshobjects.size()); printf("\t m_meshobjects: %d\n", (int)m_meshobjects.size());
printf("\t m_materials: %d\n", m_materials.size()); printf("\t m_materials: %d\n", (int)m_materials.size());
printf("\nMappings...\n"); printf("\nMappings...\n");
printf("\t m_map_blender_to_gameobject: %d\n", m_map_blender_to_gameobject.size()); printf("\t m_map_blender_to_gameobject: %d\n", (int)m_map_blender_to_gameobject.size());
printf("\t m_map_mesh_to_gamemesh: %d\n", m_map_mesh_to_gamemesh.size()); printf("\t m_map_mesh_to_gamemesh: %d\n", (int)m_map_mesh_to_gamemesh.size());
printf("\t m_map_blender_to_gameactuator: %d\n", m_map_blender_to_gameactuator.size()); printf("\t m_map_blender_to_gameactuator: %d\n", (int)m_map_blender_to_gameactuator.size());
printf("\t m_map_blender_to_gamecontroller: %d\n", m_map_blender_to_gamecontroller.size()); printf("\t m_map_blender_to_gamecontroller: %d\n", (int)m_map_blender_to_gamecontroller.size());
printf("\t m_map_blender_to_gameAdtList: %d\n", m_map_blender_to_gameAdtList.size()); printf("\t m_map_blender_to_gameAdtList: %d\n", (int)m_map_blender_to_gameAdtList.size());
#ifdef WITH_CXX_GUARDEDALLOC #ifdef WITH_CXX_GUARDEDALLOC
MEM_printmemlist_pydict(); MEM_printmemlist_pydict();