Fix #33522: Crash when "rotate arond selection" is on, and when no object in scene
Own regression in recent fix
This commit is contained in:
@@ -435,7 +435,7 @@ static void viewops_data_create(bContext *C, wmOperator *op, wmEvent *event)
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
Object *ob = OBACT;
|
||||
|
||||
if (ob->mode & OB_MODE_ALL_PAINT) {
|
||||
if (ob && ob->mode & OB_MODE_ALL_PAINT) {
|
||||
/* transformation is disabled for painting modes, which will make it
|
||||
* so previous offset is used. This is annoying when you open file
|
||||
* saved with active object in painting mode
|
||||
|
||||
Reference in New Issue
Block a user