Blender V5.3
blender::evil Namespace Reference

Functions

bool DEG_iterator_temp_object_from_dupli (const Object *dupli_parent, const DupliObject *dupli, eEvaluationMode eval_mode, bool do_matrix_setup, Object *r_temp_object, bke::ObjectRuntime *r_temp_runtime)
void DEG_iterator_temp_object_free_properties (const DupliObject *dupli, Object *temp_object)

Function Documentation

◆ DEG_iterator_temp_object_free_properties()

void blender::evil::DEG_iterator_temp_object_free_properties ( const DupliObject * dupli,
Object * temp_object )

WARNING: DON'T USE!!! Frees any property allocated when calling DEG_iterator_temp_object_from_dupli.

Definition at line 552 of file depsgraph_query_iter.cc.

References blender::ensure_id_properties_freed(), blender::Object::id, blender::DupliObject::ob, blender::ID::properties, and blender::ID::system_properties.

Referenced by blender::draw::foreach_obref_in_scene().

◆ DEG_iterator_temp_object_from_dupli()

bool blender::evil::DEG_iterator_temp_object_from_dupli ( const Object * dupli_parent,
const DupliObject * dupli,
eEvaluationMode eval_mode,
bool do_matrix_setup,
Object * r_temp_object,
bke::ObjectRuntime * r_temp_runtime )
nodiscard

WARNING: DON'T USE!!!

These functions are exposed publicly as a temporary measure while we figure out how to fully get rid of temporary objects in the Draw module (See #144811).

DON'T ADD NEW USE CASES FOR THESE FUNCTIONS. WARNING: DON'T USE!!! Generates a temporary object for a given dupli instance.

Returns true if the resulting object should be visible, otherwise the temp object should be considered invalid. NOTE: DEG_iterator_temp_object_free_properties should be called regardless.

Parameters
do_matrix_setupIf false, the temp_object won't have valid object_to_world/world_to_object matrices, and the OB_NEG_SCALE flag will never be set.

Definition at line 489 of file depsgraph_query_iter.cc.

References blender::BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT, blender::Object::base_flag, blender::BASE_FROM_DUPLI, blender::Object::base_local_view_bits, blender::BKE_object_replace_data_on_shallow_copy(), blender::BKE_object_visibility(), blender::BLI_assert(), blender::Object::color, blender::copy_m4_m4(), blender::copy_v4_v4(), blender::Object::data, blender::deg::deg_validate_eval_copy_datablock(), blender::Object::dt, blender::Object::id, blender::invert_m4_m4(), blender::is_negative_m4(), blender::bke::ObjectRuntime::local_collections_bits, blender::DupliObject::mat, blender::DupliObject::ob, blender::DupliObject::ob_data, blender::OB_NEG_SCALE, blender::OB_VISIBLE_PARTICLES, blender::OB_VISIBLE_SELF, blender::bke::ObjectRuntime::object_to_world, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::Object::runtime, blender::bke::ObjectRuntime::select_id, SET_FLAG_FROM_TEST, blender::dna::shallow_copy(), blender::Object::transflag, and blender::bke::ObjectRuntime::world_to_object.

Referenced by blender::draw::foreach_obref_in_scene().