Transform: remove incorrect 3D view check
This commit is contained in:
parent
f4c70a35a2
commit
21523b5c86
Notes:
blender-bot
2023-02-14 06:17:14 +01:00
Referenced by issue #59286, Cycles GPU Compute baking often fails Referenced by issue #59275, Eevee - Generated coordinates don't follow mesh deformation Referenced by issue #59266, Hard to select a single face when set to display as wireframe Referenced by issue #59273, Text object disappears when Fill Mode set to None
|
@ -68,11 +68,10 @@ void BIF_clearTransformOrientation(bContext *C)
|
|||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
ListBase *transform_orientations = &scene->transform_spaces;
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
|
||||
BLI_freelistN(transform_orientations);
|
||||
|
||||
if (v3d && scene->orientation_type == V3D_MANIP_CUSTOM) {
|
||||
if (scene->orientation_type == V3D_MANIP_CUSTOM) {
|
||||
scene->orientation_type = V3D_MANIP_GLOBAL; /* fallback to global */
|
||||
scene->orientation_index_custom = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue