Blender V2.61 - r43446
|
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_camera_types.h"
#include "DNA_group_types.h"
#include "DNA_key_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_sequence_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_math_base.h"
#include <fnmatch.h>
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_depsgraph.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_group.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_sequencer.h"
#include "ED_armature.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "ED_keyframing.h"
#include "outliner_intern.h"
Go to the source code of this file.
Definition in file outliner_edit.c.
#define _GNU_SOURCE |
Definition at line 63 of file outliner_edit.c.
anonymous enum |
Definition at line 1108 of file outliner_edit.c.
anonymous enum |
Definition at line 1263 of file outliner_edit.c.
Definition at line 358 of file outliner_edit.c.
References CTX_data_edit_object(), OB_RESTRICT_SELECT, OB_RESTRICT_VIEW, and Object::restrictflag.
Referenced by object_toggle_visibility_cb(), restrictbutton_sel_cb(), and restrictbutton_view_cb().
static void do_item_rename | ( | ARegion * | ar, |
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
ReportList * | reports | ||
) | [static] |
Definition at line 221 of file outliner_edit.c.
References BKE_report(), ED_region_tag_redraw(), ELEM10, ELEM3, TreeStoreElem::flag, TreeStoreElem::id, ID_LI, TreeElement::idcode, ID::lib, TreeElement::parent, RPT_WARNING, TSE_ANIM_DATA, TSE_CONSTRAINT_BASE, TSE_DEFGROUP_BASE, TSE_MODIFIER_BASE, TSE_NLA, TSE_POSE_BASE, TSE_POSEGRP_BASE, TSE_R_LAYER_BASE, TSE_R_PASS, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_RNA_STRUCT, TSE_SCRIPT_BASE, TSE_SEQ_STRIP, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_TEXTBUT, and TreeStoreElem::type.
Referenced by do_outliner_item_rename(), and item_rename_cb().
static void do_outliner_drivers_editop | ( | SpaceOops * | soops, |
ListBase * | tree, | ||
ReportList * | reports, | ||
short | mode | ||
) | [static] |
Definition at line 1116 of file outliner_edit.c.
References ANIM_add_driver(), ANIM_remove_driver(), CREATEDRIVER_WITH_DEFAULT_DVAR, TreeElement::directdata, DRIVER_TYPE_PYTHON, DRIVERS_EDITMODE_ADD, DRIVERS_EDITMODE_REMOVE, ELEM, ListBase::first, TreeStoreElem::flag, KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, MEM_freeN(), TreeElement::next, NULL, RNA_property_animateable(), RNA_property_array_length(), TreeElement::rnaptr, TreeElement::subtree, tree_element_to_path(), TREESTORE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_SELECTED, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_drivers_addsel_exec(), and outliner_drivers_deletesel_exec().
static int do_outliner_item_openclose | ( | bContext * | C, |
SpaceOops * | soops, | ||
TreeElement * | te, | ||
int | all, | ||
const float | mval[2] | ||
) | [static] |
Definition at line 158 of file outliner_edit.c.
References ListBase::first, TreeStoreElem::flag, TreeElement::next, outliner_has_one_flag(), outliner_set_flag(), TreeElement::subtree, TREESTORE, TSE_CLOSED, UI_UNIT_Y, and TreeElement::ys.
Referenced by outliner_item_openclose().
static int do_outliner_item_rename | ( | bContext * | C, |
ARegion * | ar, | ||
SpaceOops * | soops, | ||
TreeElement * | te, | ||
const float | mval[2] | ||
) | [static] |
Definition at line 254 of file outliner_edit.c.
References CTX_wm_reports(), do_item_rename(), ListBase::first, TreeElement::next, TreeElement::subtree, TREESTORE, UI_UNIT_X, UI_UNIT_Y, TreeElement::xend, TreeElement::xs, and TreeElement::ys.
Referenced by outliner_item_rename().
static void do_outliner_keyingset_editop | ( | SpaceOops * | soops, |
KeyingSet * | ks, | ||
ListBase * | tree, | ||
short | mode | ||
) | [static] |
Definition at line 1295 of file outliner_edit.c.
References KeyingSet::active_path, BKE_keyingset_add_path(), BKE_keyingset_find_path(), BKE_keyingset_free_path(), BLI_countlist(), TreeElement::directdata, ELEM, ListBase::first, TreeStoreElem::flag, KEYINGSET_EDITMODE_ADD, KEYINGSET_EDITMODE_REMOVE, KSP_GROUP_KSNAME, MEM_freeN(), TreeElement::next, NULL, KeyingSet::paths, RNA_property_animateable(), TreeElement::rnaptr, TreeElement::subtree, tree_element_to_path(), TREESTORE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_SELECTED, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().
static int ed_operator_outliner_datablocks_active | ( | bContext * | C | ) | [static] |
Definition at line 956 of file outliner_edit.c.
References CTX_wm_area(), CTX_wm_space_outliner(), SpaceOops::outlinevis, SO_DATABLOCKS, SPACE_OUTLINER, and ScrArea::spacetype.
Referenced by OUTLINER_OT_drivers_add_selected(), OUTLINER_OT_drivers_delete_selected(), OUTLINER_OT_keyingset_add_selected(), and OUTLINER_OT_keyingset_remove_selected().
void group_toggle_renderability_cb | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 489 of file outliner_edit.c.
References TreeStoreElem::id, OB_RESTRICT_RENDER, and restrictbutton_gr_restrict_flag().
Referenced by outliner_group_operation_exec().
void group_toggle_selectability_cb | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 443 of file outliner_edit.c.
References TreeStoreElem::id, OB_RESTRICT_SELECT, and restrictbutton_gr_restrict_flag().
Referenced by outliner_group_operation_exec().
void group_toggle_visibility_cb | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
TreeElement * | UNUSEDte, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 397 of file outliner_edit.c.
References TreeStoreElem::id, OB_RESTRICT_VIEW, and restrictbutton_gr_restrict_flag().
Referenced by outliner_group_operation_exec().
void item_rename_cb | ( | bContext * | C, |
Scene * | UNUSEDscene, | ||
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 247 of file outliner_edit.c.
References CTX_wm_region(), CTX_wm_reports(), and do_item_rename().
Referenced by outliner_group_operation_exec(), outliner_id_operation_exec(), and outliner_object_operation_exec().
void object_toggle_renderability_cb | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 479 of file outliner_edit.c.
References TreeElement::directdata, TreeStoreElem::id, NULL, OB_RESTRICT_RENDER, Base::object, object_in_scene(), and Object::restrictflag.
Referenced by outliner_object_operation_exec(), and outliner_toggle_renderability_exec().
void object_toggle_selectability_cb | ( | bContext * | UNUSEDC, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 433 of file outliner_edit.c.
References TreeElement::directdata, TreeStoreElem::id, NULL, OB_RESTRICT_SELECT, Base::object, object_in_scene(), and Object::restrictflag.
Referenced by outliner_object_operation_exec(), and outliner_toggle_selectability_exec().
void object_toggle_visibility_cb | ( | bContext * | C, |
Scene * | scene, | ||
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem | ||
) |
Definition at line 382 of file outliner_edit.c.
References BA_DESELECT, common_restrict_check(), TreeElement::directdata, ED_base_object_select(), TreeStoreElem::id, OB_RESTRICT_VIEW, Base::object, object_in_scene(), and Object::restrictflag.
Referenced by outliner_object_operation_exec(), and outliner_toggle_visibility_exec().
Definition at line 311 of file outliner_edit.c.
References ListBase::first, TreeElement::next, and TreeElement::subtree.
Referenced by outliner_one_level_exec().
static int outliner_drivers_addsel_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1190 of file outliner_edit.c.
References CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_ADD, NC_ANIMATION, ND_FCURVES_ORDER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, SpaceOops::tree, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_add_selected().
static int outliner_drivers_deletesel_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1225 of file outliner_edit.c.
References CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_REMOVE, ND_KEYS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, SpaceOops::tree, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_delete_selected().
Definition at line 324 of file outliner_edit.c.
References ListBase::first, TreeStoreElem::flag, TreeElement::next, outliner_has_one_flag(), TreeElement::subtree, and TREESTORE.
Referenced by do_outliner_item_activate(), do_outliner_item_openclose(), do_outliner_operation_event(), outliner_has_one_flag(), outliner_one_level_exec(), outliner_toggle_expanded_exec(), and outliner_toggle_selected_exec().
static int outliner_item_openclose | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 186 of file outliner_edit.c.
References CTX_wm_region(), CTX_wm_space_outliner(), do_outliner_item_openclose(), ED_region_tag_redraw(), ListBase::first, wmEvent::mval, TreeElement::next, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), SpaceOops::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_item_openclose().
static int outliner_item_rename | ( | bContext * | C, |
wmOperator * | UNUSEDop, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 275 of file outliner_edit.c.
References CTX_wm_region(), CTX_wm_space_outliner(), do_outliner_item_rename(), ListBase::first, wmEvent::mval, TreeElement::next, OPERATOR_FINISHED, SpaceOops::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_item_rename().
static int outliner_keyingset_additems_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1358 of file outliner_edit.c.
References BKE_report(), CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_ADD, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, SpaceOops::tree, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_add_selected().
static int outliner_keyingset_removeitems_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 1399 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_REMOVE, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceOops::tree, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_remove_selected().
static int outliner_one_level_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 842 of file outliner_edit.c.
References add(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, outliner_count_levels(), outliner_has_one_flag(), outliner_openclose_level(), wmOperator::ptr, RNA_boolean_get(), SpaceOops::tree, and TSE_CLOSED.
Referenced by OUTLINER_OT_show_one_level().
static void outliner_openclose_level | ( | SpaceOops * | soops, |
ListBase * | lb, | ||
int | curlevel, | ||
int | level, | ||
int | open | ||
) | [static] |
Definition at line 823 of file outliner_edit.c.
References ListBase::first, TreeStoreElem::flag, TreeElement::next, TreeElement::subtree, TREESTORE, and TSE_CLOSED.
Referenced by outliner_one_level_exec().
void OUTLINER_OT_drivers_add_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1207 of file outliner_edit.c.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_drivers_addsel_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_drivers_delete_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1242 of file outliner_edit.c.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_drivers_deletesel_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_expanded_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 542 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, outliner_toggle_expanded_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_item_openclose | ( | wmOperatorType * | ot | ) |
Definition at line 206 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, outliner_item_openclose(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_item_rename | ( | wmOperatorType * | ot | ) |
Definition at line 292 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, outliner_item_rename(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_keyingset_add_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1381 of file outliner_edit.c.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_keyingset_additems_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_keyingset_remove_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1418 of file outliner_edit.c.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_keyingset_removeitems_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_renderability_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 508 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_toggle_renderability_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_scroll_page | ( | wmOperatorType * | ot | ) |
Definition at line 665 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, outliner_scroll_page_exec(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_selectability_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 463 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active_no_editobject(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_toggle_selectability_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_selected_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 577 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, outliner_toggle_selected_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_show_active | ( | wmOperatorType * | ot | ) |
Definition at line 632 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, outliner_show_active_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_show_hierarchy | ( | wmOperatorType * | ot | ) |
Definition at line 937 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, outliner_show_hierarchy_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_show_one_level | ( | wmOperatorType * | ot | ) |
Definition at line 863 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, outliner_one_level_exec(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_visibility_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 417 of file outliner_edit.c.
References wmOperatorType::description, ED_operator_outliner_active_no_editobject(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, outliner_toggle_visibility_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
static int outliner_scroll_page_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 646 of file outliner_edit.c.
References CTX_wm_region(), View2D::cur, ED_region_tag_redraw(), View2D::mask, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), ARegion::v2d, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by OUTLINER_OT_scroll_page().
Definition at line 340 of file outliner_edit.c.
References ListBase::first, TreeStoreElem::flag, TreeElement::next, outliner_set_flag(), TreeElement::subtree, and TREESTORE.
Referenced by do_outliner_item_activate(), do_outliner_item_openclose(), do_outliner_operation_event(), outliner_set_flag(), outliner_toggle_expanded_exec(), and outliner_toggle_selected_exec().
static int outliner_show_active_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 596 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, ED_region_tag_redraw(), View2D::mask, NULL, OBACT, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_find_id(), SO_TREESTORE_REDRAW, SpaceOops::storeflag, SpaceOops::tree, ARegion::v2d, rctf::xmax, rctf::xmin, TreeElement::xs, rctf::ymax, rcti::ymax, rctf::ymin, rcti::ymin, and TreeElement::ys.
Referenced by OUTLINER_OT_show_active().
static int outliner_show_hierarchy_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 923 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, SpaceOops::tree, and tree_element_show_hierarchy().
Referenced by OUTLINER_OT_show_hierarchy().
static int outliner_toggle_expanded_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 527 of file outliner_edit.c.
References CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, outliner_has_one_flag(), outliner_set_flag(), SpaceOops::tree, and TSE_CLOSED.
Referenced by OUTLINER_OT_expanded_toggle().
static int outliner_toggle_renderability_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 495 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), object_toggle_renderability_cb(), OPERATOR_FINISHED, outliner_do_object_operation(), and SpaceOops::tree.
Referenced by OUTLINER_OT_renderability_toggle().
static int outliner_toggle_selectability_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 449 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), NC_SCENE, ND_OB_SELECT, object_toggle_selectability_cb(), OPERATOR_FINISHED, outliner_do_object_operation(), SpaceOops::tree, and WM_event_add_notifier().
Referenced by OUTLINER_OT_selectability_toggle().
static int outliner_toggle_selected_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 558 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, outliner_has_one_flag(), outliner_set_flag(), SO_TREESTORE_REDRAW, SpaceOops::storeflag, SpaceOops::tree, TSE_SELECTED, and WM_event_add_notifier().
Referenced by OUTLINER_OT_selected_toggle().
static int outliner_toggle_visibility_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 403 of file outliner_edit.c.
References CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), NC_SCENE, ND_OB_VISIBLE, object_toggle_visibility_cb(), OPERATOR_FINISHED, outliner_do_object_operation(), SpaceOops::tree, and WM_event_add_notifier().
Referenced by OUTLINER_OT_visibility_toggle().
Definition at line 883 of file outliner_edit.c.
References ListBase::first, ID_OB, TreeElement::idcode, TreeElement::next, TreeElement::subtree, TREESTORE, and TreeStoreElem::type.
Referenced by tree_element_show_hierarchy().
static void tree_element_show_hierarchy | ( | Scene * | scene, |
SpaceOops * | soops, | ||
ListBase * | lb | ||
) | [static] |
Definition at line 897 of file outliner_edit.c.
References ListBase::first, TreeStoreElem::flag, TreeStoreElem::id, ID_OB, ID_SCE, TreeElement::idcode, TreeElement::next, TreeElement::subtree, subtree_has_objects(), TREESTORE, TSE_CLOSED, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_show_hierarchy_exec().
static void tree_element_to_path | ( | SpaceOops * | soops, |
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
ID ** | id, | ||
char ** | path, | ||
int * | array_index, | ||
short * | flag, | ||
short * | UNUSEDgroupmode | ||
) | [static] |
Definition at line 971 of file outliner_edit.c.
References BLI_addhead(), BLI_freelistN(), PointerRNA::data, LinkData::data, TreeElement::directdata, ListBase::first, TreeElement::index, KSP_FLAG_WHOLE_ARRAY, MEM_callocN(), MEM_freeN(), TreeElement::next, LinkData::next, NULL, TreeElement::parent, PROP_COLLECTION, PROP_POINTER, RNA_path_append(), RNA_property_array_length(), RNA_property_type(), RNA_struct_is_ID(), RNA_struct_name_get_alloc(), TreeElement::rnaptr, TreeElement::subtree, TREESTORE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_RNA_STRUCT, PointerRNA::type, and TreeStoreElem::type.
Referenced by do_outliner_drivers_editop(), and do_outliner_keyingset_editop().
Definition at line 1272 of file outliner_edit.c.
References Scene::active_keyingset, BKE_keyingset_add(), BLI_countlist(), BLI_findlink(), KEYINGSET_ABSOLUTE, Scene::keyingsets, and NULL.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().