Merge branch 'blender-v4.5-release'
This commit is contained in:
@@ -324,7 +324,7 @@ inline ResourceHandleRange Manager::unique_handle(const ObjectRef &ref)
|
||||
inline ResourceHandleRange Manager::resource_handle(const ObjectRef &ref, float inflate_bounds)
|
||||
{
|
||||
bool is_active_object = ref.is_active(object_active);
|
||||
bool is_edit_mode = DRW_object_is_in_edit_mode(object_active) &&
|
||||
bool is_edit_mode = object_active && DRW_object_is_in_edit_mode(object_active) &&
|
||||
ref.object->mode == object_active->mode;
|
||||
matrix_buf.current().get_or_resize(resource_len_).sync(*ref.object);
|
||||
bounds_buf.current().get_or_resize(resource_len_).sync(*ref.object, inflate_bounds);
|
||||
@@ -338,7 +338,7 @@ inline ResourceHandle Manager::resource_handle(const ObjectRef &ref,
|
||||
const float3 *bounds_half_extent)
|
||||
{
|
||||
bool is_active_object = ref.is_active(object_active);
|
||||
bool is_edit_mode = DRW_object_is_in_edit_mode(object_active) &&
|
||||
bool is_edit_mode = object_active && DRW_object_is_in_edit_mode(object_active) &&
|
||||
ref.object->mode == object_active->mode;
|
||||
if (model_matrix) {
|
||||
matrix_buf.current().get_or_resize(resource_len_).sync(*model_matrix);
|
||||
@@ -378,7 +378,7 @@ inline ResourceHandle Manager::resource_handle_for_psys(const ObjectRef &ref,
|
||||
const float4x4 &model_matrix)
|
||||
{
|
||||
bool is_active_object = ref.is_active(object_active);
|
||||
bool is_edit_mode = DRW_object_is_in_edit_mode(object_active) &&
|
||||
bool is_edit_mode = object_active && DRW_object_is_in_edit_mode(object_active) &&
|
||||
ref.object->mode == object_active->mode;
|
||||
matrix_buf.current().get_or_resize(resource_len_).sync(model_matrix);
|
||||
bounds_buf.current().get_or_resize(resource_len_).sync();
|
||||
|
||||
Reference in New Issue
Block a user