Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_placement.c
| Show First 20 Lines • Show All 930 Lines • ▼ Show 20 Lines | if (ELEM(event->type, ipd->launch_event, LEFTMOUSE)) { | ||||
| WM_toolsystem_ref_properties_init_for_keymap(tref, &temp_props, &op_props, ot); | WM_toolsystem_ref_properties_init_for_keymap(tref, &temp_props, &op_props, ot); | ||||
| SWAP(PointerRNA, temp_props, op_props); | SWAP(PointerRNA, temp_props, op_props); | ||||
| WM_operator_properties_free(&temp_props); | WM_operator_properties_free(&temp_props); | ||||
| } | } | ||||
| RNA_float_set_array(&op_props, "rotation", rotation); | RNA_float_set_array(&op_props, "rotation", rotation); | ||||
| RNA_float_set_array(&op_props, "location", location); | RNA_float_set_array(&op_props, "location", location); | ||||
| RNA_float_set_array(&op_props, "scale", scale); | RNA_float_set_array(&op_props, "scale", scale); | ||||
| /* Always use default size here. */ | |||||
| RNA_float_set(&op_props, "size", 2.0f); | |||||
| WM_operator_name_call_ptr(C, ot, WM_OP_EXEC_DEFAULT, &op_props); | WM_operator_name_call_ptr(C, ot, WM_OP_EXEC_DEFAULT, &op_props); | ||||
| WM_operator_properties_free(&op_props); | WM_operator_properties_free(&op_props); | ||||
| } | } | ||||
| else { | else { | ||||
| BLI_assert(0); | BLI_assert(0); | ||||
| } | } | ||||
| view3d_interactive_add_exit(C, op); | view3d_interactive_add_exit(C, op); | ||||
| ▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines | |||||