Blender  V3.3
physics_ops.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2009 Blender Foundation. All rights reserved. */
3 
8 #include <stdlib.h>
9 
10 #include "WM_api.h"
11 
12 #include "ED_physics.h"
13 
14 #include "physics_intern.h" /* own include */
15 
16 /***************************** particles ***********************************/
17 
18 static void operatortypes_particle(void)
19 {
28 
31 
38 
40 
42 
45 
47 
50 
60 
66 
69 
72 
75 
78 
81  // WM_operatortype_append(RIGIDBODY_OT_world_export);
82 }
83 
84 static void keymap_particle(wmKeyConfig *keyconf)
85 {
86  wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Particle", 0, 0);
87  keymap->poll = PE_poll;
88 }
89 
90 /******************************* boids *************************************/
91 
92 static void operatortypes_boids(void)
93 {
98 
103 }
104 
105 /********************************* fluid ***********************************/
106 
107 static void operatortypes_fluid(void)
108 {
122 }
123 
124 /**************************** point cache **********************************/
125 
126 static void operatortypes_pointcache(void)
127 {
135 }
136 
137 /********************************* dynamic paint ***********************************/
138 
139 static void operatortypes_dynamicpaint(void)
140 {
146 }
147 
148 /****************************** general ************************************/
149 
151 {
157 }
158 
160 {
161  keymap_particle(keyconf);
162 }
bool PE_poll(struct bContext *C)
Definition: particle_edit.c:80
void DPAINT_OT_type_toggle(wmOperatorType *ot)
void DPAINT_OT_output_toggle(wmOperatorType *ot)
void DPAINT_OT_surface_slot_add(wmOperatorType *ot)
void DPAINT_OT_surface_slot_remove(wmOperatorType *ot)
void DPAINT_OT_bake(wmOperatorType *ot)
void BOID_OT_state_add(wmOperatorType *ot)
void BOID_OT_state_move_down(wmOperatorType *ot)
void BOID_OT_rule_add(wmOperatorType *ot)
void BOID_OT_rule_move_down(wmOperatorType *ot)
void BOID_OT_rule_move_up(wmOperatorType *ot)
void BOID_OT_state_del(wmOperatorType *ot)
void BOID_OT_state_move_up(wmOperatorType *ot)
void BOID_OT_rule_del(wmOperatorType *ot)
void PARTICLE_OT_select_roots(wmOperatorType *ot)
void PARTICLE_OT_unify_length(struct wmOperatorType *ot)
void PARTICLE_OT_weight_set(wmOperatorType *ot)
void PARTICLE_OT_remove_doubles(wmOperatorType *ot)
void PARTICLE_OT_shape_cut(wmOperatorType *ot)
void PARTICLE_OT_delete(wmOperatorType *ot)
void PARTICLE_OT_select_less(wmOperatorType *ot)
void PARTICLE_OT_edited_clear(wmOperatorType *ot)
void PARTICLE_OT_mirror(wmOperatorType *ot)
void PARTICLE_OT_select_random(wmOperatorType *ot)
void PARTICLE_OT_select_linked(wmOperatorType *ot)
void PARTICLE_OT_reveal(wmOperatorType *ot)
void PARTICLE_OT_subdivide(wmOperatorType *ot)
void PARTICLE_OT_select_more(wmOperatorType *ot)
void PARTICLE_OT_rekey(wmOperatorType *ot)
void PARTICLE_OT_select_all(wmOperatorType *ot)
void PARTICLE_OT_particle_edit_toggle(wmOperatorType *ot)
void PARTICLE_OT_select_tips(wmOperatorType *ot)
void PARTICLE_OT_hide(wmOperatorType *ot)
void PARTICLE_OT_select_linked_pick(wmOperatorType *ot)
void PARTICLE_OT_brush_edit(wmOperatorType *ot)
void PARTICLE_OT_target_move_up(wmOperatorType *ot)
void PARTICLE_OT_dupliob_copy(wmOperatorType *ot)
void PARTICLE_OT_dupliob_refresh(wmOperatorType *ot)
void PARTICLE_OT_new(wmOperatorType *ot)
void PARTICLE_OT_new_target(wmOperatorType *ot)
void PARTICLE_OT_disconnect_hair(wmOperatorType *ot)
void PARTICLE_OT_dupliob_move_down(wmOperatorType *ot)
void PARTICLE_OT_target_remove(wmOperatorType *ot)
void PARTICLE_OT_connect_hair(wmOperatorType *ot)
void OBJECT_OT_particle_system_remove(wmOperatorType *ot)
void PARTICLE_OT_copy_particle_systems(wmOperatorType *ot)
void PARTICLE_OT_dupliob_remove(wmOperatorType *ot)
void PARTICLE_OT_dupliob_move_up(wmOperatorType *ot)
void OBJECT_OT_particle_system_add(wmOperatorType *ot)
void PARTICLE_OT_target_move_down(wmOperatorType *ot)
void PARTICLE_OT_duplicate_particle_system(wmOperatorType *ot)
void FLUID_OT_free_mesh(wmOperatorType *ot)
void FLUID_OT_free_particles(wmOperatorType *ot)
void FLUID_OT_free_all(wmOperatorType *ot)
void FLUID_OT_bake_guides(wmOperatorType *ot)
void FLUID_OT_free_guides(wmOperatorType *ot)
void FLUID_OT_bake_particles(wmOperatorType *ot)
void FLUID_OT_bake_all(wmOperatorType *ot)
void FLUID_OT_bake_data(wmOperatorType *ot)
void FLUID_OT_free_noise(wmOperatorType *ot)
void FLUID_OT_pause_bake(wmOperatorType *ot)
void FLUID_OT_bake_noise(wmOperatorType *ot)
void FLUID_OT_free_data(wmOperatorType *ot)
void FLUID_OT_bake_mesh(wmOperatorType *ot)
void PTCACHE_OT_remove(struct wmOperatorType *ot)
void RIGIDBODY_OT_world_remove(struct wmOperatorType *ot)
void RIGIDBODY_OT_mass_calculate(struct wmOperatorType *ot)
void PTCACHE_OT_free_bake(struct wmOperatorType *ot)
void PTCACHE_OT_bake_from_cache(struct wmOperatorType *ot)
void RIGIDBODY_OT_world_add(struct wmOperatorType *ot)
void PTCACHE_OT_add(struct wmOperatorType *ot)
void RIGIDBODY_OT_objects_remove(struct wmOperatorType *ot)
void RIGIDBODY_OT_constraint_remove(struct wmOperatorType *ot)
void PTCACHE_OT_bake_all(struct wmOperatorType *ot)
void RIGIDBODY_OT_shape_change(struct wmOperatorType *ot)
void RIGIDBODY_OT_constraint_add(struct wmOperatorType *ot)
void PTCACHE_OT_free_bake_all(struct wmOperatorType *ot)
void PTCACHE_OT_bake(struct wmOperatorType *ot)
void RIGIDBODY_OT_object_add(struct wmOperatorType *ot)
void RIGIDBODY_OT_objects_add(struct wmOperatorType *ot)
void RIGIDBODY_OT_object_remove(struct wmOperatorType *ot)
void ED_operatortypes_physics(void)
Definition: physics_ops.c:150
static void operatortypes_boids(void)
Definition: physics_ops.c:92
static void operatortypes_particle(void)
Definition: physics_ops.c:18
static void operatortypes_pointcache(void)
Definition: physics_ops.c:126
static void keymap_particle(wmKeyConfig *keyconf)
Definition: physics_ops.c:84
static void operatortypes_dynamicpaint(void)
Definition: physics_ops.c:139
static void operatortypes_fluid(void)
Definition: physics_ops.c:107
void ED_keymap_physics(wmKeyConfig *keyconf)
Definition: physics_ops.c:159
bool(* poll)(struct bContext *)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition: wm_keymap.c:852
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))