Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_utils.c
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | if (v3d->shading.type == OB_SOLID) { | ||||
| if (v3d->shading.color_type == V3D_SHADING_TEXTURE_COLOR) { | if (v3d->shading.color_type == V3D_SHADING_TEXTURE_COLOR) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (ob && ob->mode == OB_MODE_TEXTURE_PAINT) { | if (ob && ob->mode == OB_MODE_TEXTURE_PAINT) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| else if (v3d->shading.type == OB_RENDER) { | else if (v3d->shading.type == OB_RENDER) { | ||||
| if (STREQ(scene->r.engine, RE_engine_id_BLENDER_WORKBENCH)) { | if (BKE_scene_uses_blender_workbench(scene)) { | ||||
| return scene->display.shading.color_type == V3D_SHADING_TEXTURE_COLOR; | return scene->display.shading.color_type == V3D_SHADING_TEXTURE_COLOR; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| Camera *ED_view3d_camera_data_get(View3D *v3d, RegionView3D *rv3d) | Camera *ED_view3d_camera_data_get(View3D *v3d, RegionView3D *rv3d) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,653 Lines • Show Last 20 Lines | |||||