2023-05-31 16:19:06 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2007 by Janne Karhu. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2009-06-21 10:16:52 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup editors
|
2011-02-21 07:25:24 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#pragma once
|
2009-06-21 10:16:52 +00:00
|
|
|
|
2019-01-28 21:08:24 +11:00
|
|
|
struct bContext;
|
2024-03-26 22:29:53 -04:00
|
|
|
struct Depsgraph;
|
2013-01-23 05:56:44 +00:00
|
|
|
struct Object;
|
2024-03-26 22:29:53 -04:00
|
|
|
struct ReportList;
|
2019-01-28 21:08:24 +11:00
|
|
|
struct Scene;
|
2024-03-26 22:29:53 -04:00
|
|
|
struct wmKeyConfig;
|
2013-01-23 05:56:44 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `particle_edit.cc` */
|
2022-04-04 13:17:03 +10:00
|
|
|
|
2024-03-26 22:29:53 -04:00
|
|
|
bool ED_object_particle_edit_mode_supported(const Object *ob);
|
|
|
|
|
void ED_object_particle_edit_mode_enter_ex(Depsgraph *depsgraph, Scene *scene, Object *ob);
|
|
|
|
|
void ED_object_particle_edit_mode_enter(bContext *C);
|
|
|
|
|
|
|
|
|
|
void ED_object_particle_edit_mode_exit_ex(Scene *scene, Object *ob);
|
|
|
|
|
void ED_object_particle_edit_mode_exit(bContext *C);
|
|
|
|
|
|
2023-08-04 22:15:25 -04:00
|
|
|
bool PE_poll(bContext *C);
|
|
|
|
|
bool PE_hair_poll(bContext *C);
|
|
|
|
|
bool PE_poll_view3d(bContext *C);
|
2009-10-21 10:56:31 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `rigidbody_object.cc` */
|
2022-04-04 13:17:03 +10:00
|
|
|
|
2023-08-04 22:15:25 -04:00
|
|
|
bool ED_rigidbody_object_add(Main *bmain, Scene *scene, Object *ob, int type, ReportList *reports);
|
|
|
|
|
void ED_rigidbody_object_remove(Main *bmain, Scene *scene, Object *ob);
|
2013-01-23 05:56:44 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `rigidbody_constraint.cc` */
|
2022-04-04 13:17:03 +10:00
|
|
|
|
2023-08-04 22:15:25 -04:00
|
|
|
bool ED_rigidbody_constraint_add(
|
|
|
|
|
Main *bmain, Scene *scene, Object *ob, int type, ReportList *reports);
|
|
|
|
|
void ED_rigidbody_constraint_remove(Main *bmain, Scene *scene, Object *ob);
|
2013-01-23 05:56:56 +00:00
|
|
|
|
2009-06-21 10:16:52 +00:00
|
|
|
/* operators */
|
2023-08-04 22:15:25 -04:00
|
|
|
void ED_operatortypes_physics();
|
|
|
|
|
void ED_keymap_physics(wmKeyConfig *keyconf);
|