Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes.cc
| Show First 20 Lines • Show All 1,723 Lines • ▼ Show 20 Lines | static void panelRegister(ARegionType *region_type) | ||||
| modifier_subpanel_register(region_type, | modifier_subpanel_register(region_type, | ||||
| "internal_dependencies", | "internal_dependencies", | ||||
| N_("Internal Dependencies"), | N_("Internal Dependencies"), | ||||
| nullptr, | nullptr, | ||||
| internal_dependencies_panel_draw, | internal_dependencies_panel_draw, | ||||
| panel_type); | panel_type); | ||||
| } | } | ||||
| static void blendWrite(BlendWriter *writer, const ModifierData *md) | static void blendWrite(BlendWriter *writer, const ID *UNUSED(id_owner), const ModifierData *md) | ||||
| { | { | ||||
| const NodesModifierData *nmd = reinterpret_cast<const NodesModifierData *>(md); | const NodesModifierData *nmd = reinterpret_cast<const NodesModifierData *>(md); | ||||
| BLO_write_struct(writer, NodesModifierData, nmd); | |||||
| if (nmd->settings.properties != nullptr) { | if (nmd->settings.properties != nullptr) { | ||||
| /* Note that the property settings are based on the socket type info | /* Note that the property settings are based on the socket type info | ||||
| * and don't necessarily need to be written, but we can't just free them. */ | * and don't necessarily need to be written, but we can't just free them. */ | ||||
| IDP_BlendWrite(writer, nmd->settings.properties); | IDP_BlendWrite(writer, nmd->settings.properties); | ||||
| } | } | ||||
| } | } | ||||
| static void blendRead(BlendDataReader *reader, ModifierData *md) | static void blendRead(BlendDataReader *reader, ModifierData *md) | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||