Blender V5.3
particle_object.cc File Reference
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_scene_types.h"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "BKE_bvh.hh"
#include "BKE_bvhutils.hh"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_global.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_legacy_convert.hh"
#include "BKE_modifier.hh"
#include "BKE_object.hh"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_object.hh"
#include "ED_particle.hh"
#include "ED_screen.hh"
#include "particle_edit_utildefines.h"
#include "physics_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PSYS_FROM_FIRST
#define PSYS_FROM_NEXT(cur)

Enumerations

enum  blender::eCopyParticlesSpace { blender::PAR_COPY_SPACE_OBJECT = 0 , blender::PAR_COPY_SPACE_WORLD = 1 }

Functions

static wmOperatorStatus blender::particle_system_add_exec (bContext *C, wmOperator *)
void blender::OBJECT_OT_particle_system_add (wmOperatorType *ot)
static wmOperatorStatus blender::particle_system_remove_exec (bContext *C, wmOperator *)
void blender::OBJECT_OT_particle_system_remove (wmOperatorType *ot)
static bool blender::psys_poll (bContext *C)
static wmOperatorStatus blender::new_particle_settings_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_new (wmOperatorType *ot)
static wmOperatorStatus blender::new_particle_target_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_new_target (wmOperatorType *ot)
static wmOperatorStatus blender::remove_particle_target_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_target_remove (wmOperatorType *ot)
static wmOperatorStatus blender::target_move_up_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_target_move_up (wmOperatorType *ot)
static wmOperatorStatus blender::target_move_down_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_target_move_down (wmOperatorType *ot)
static wmOperatorStatus blender::dupliob_refresh_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_dupliob_refresh (wmOperatorType *ot)
static wmOperatorStatus blender::dupliob_move_up_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_dupliob_move_up (wmOperatorType *ot)
static wmOperatorStatus blender::copy_particle_dupliob_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_dupliob_copy (wmOperatorType *ot)
static wmOperatorStatus blender::remove_particle_dupliob_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_dupliob_remove (wmOperatorType *ot)
static wmOperatorStatus blender::dupliob_move_down_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_dupliob_move_down (wmOperatorType *ot)
static void blender::disconnect_hair (Depsgraph *depsgraph, Scene *scene, Object *ob, ParticleSystem *psys)
static wmOperatorStatus blender::disconnect_hair_exec (bContext *C, wmOperator *op)
void blender::PARTICLE_OT_disconnect_hair (wmOperatorType *ot)
static bool blender::remap_hair_emitter (Depsgraph *depsgraph, Scene *scene, Object *ob, ParticleSystem *psys, Object *target_ob, ParticleSystem *target_psys, PTCacheEdit *target_edit, const float from_mat[4][4], const float to_mat[4][4], bool from_global, bool to_global)
static bool blender::connect_hair (Depsgraph *depsgraph, Scene *scene, Object *ob, ParticleSystem *psys)
static wmOperatorStatus blender::connect_hair_exec (bContext *C, wmOperator *op)
void blender::PARTICLE_OT_connect_hair (wmOperatorType *ot)
static void blender::copy_particle_edit (Depsgraph *depsgraph, Scene *scene, Object *ob, ParticleSystem *psys, ParticleSystem *psys_from)
static void blender::remove_particle_systems_from_object (Object *ob_to)
static bool blender::copy_particle_systems_to_object (const bContext *C, Scene *scene, Object *ob_from, ParticleSystem *single_psys_from, Object *ob_to, int space, bool duplicate_settings)
static bool blender::copy_particle_systems_poll (bContext *C)
static wmOperatorStatus blender::copy_particle_systems_exec (bContext *C, wmOperator *op)
void blender::PARTICLE_OT_copy_particle_systems (wmOperatorType *ot)
static bool blender::duplicate_particle_systems_poll (bContext *C)
static wmOperatorStatus blender::duplicate_particle_systems_exec (bContext *C, wmOperator *op)
void blender::PARTICLE_OT_duplicate_particle_system (wmOperatorType *ot)
static bool blender::remove_all_particle_systems_poll (bContext *C)
static wmOperatorStatus blender::particle_system_remove_all_exec (bContext *C, wmOperator *)
void blender::PARTICLE_OT_particle_system_remove_all (wmOperatorType *ot)

Variables

static float blender::I [4][4]

Macro Definition Documentation

◆ PSYS_FROM_FIRST

#define PSYS_FROM_FIRST
Value:
static_cast<ParticleSystem *>( \
(single_psys_from ? single_psys_from : ob_from->particlesystem.first()))

Referenced by blender::copy_particle_systems_to_object().

◆ PSYS_FROM_NEXT

#define PSYS_FROM_NEXT ( cur)
Value:
(single_psys_from ? nullptr : (cur)->next)

Referenced by blender::copy_particle_systems_to_object().