Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_simulation.cc
| Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | static PointCloud *modifyPointCloud(ModifierData *md, | ||||
| for (int i = 0; i < state->tot_particles; i++) { | for (int i = 0; i < state->tot_particles; i++) { | ||||
| pointcloud->radius[i] = radii[i]; | pointcloud->radius[i] = radii[i]; | ||||
| } | } | ||||
| return pointcloud; | return pointcloud; | ||||
| } | } | ||||
| static void panel_draw(const bContext *C, Panel *panel) | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ptr; | |||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| modifier_panel_get_property_pointers(C, panel, &ob_ptr, &ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiLayoutSetPropDecorate(layout, false); | uiLayoutSetPropDecorate(layout, false); | ||||
| uiItemR(layout, &ptr, "simulation", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "simulation", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "data_path", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "data_path", 0, NULL, ICON_NONE); | ||||
| modifier_panel_end(layout, &ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| modifier_panel_register(region_type, eModifierType_Simulation, panel_draw); | modifier_panel_register(region_type, eModifierType_Simulation, panel_draw); | ||||
| } | } | ||||
| static void blendWrite(BlendWriter *writer, const ModifierData *md) | static void blendWrite(BlendWriter *writer, const ModifierData *md) | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||