Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 856 Lines • ▼ Show 20 Lines | static void node_shader_buts_tex_sky(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| if (RNA_enum_get(ptr, "sky_type") == SHD_SKY_HOSEK) { | if (RNA_enum_get(ptr, "sky_type") == SHD_SKY_HOSEK) { | ||||
| uiItemR(layout, ptr, "sun_direction", DEFAULT_FLAGS, "", ICON_NONE); | uiItemR(layout, ptr, "sun_direction", DEFAULT_FLAGS, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "turbidity", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "turbidity", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| uiItemR(layout, ptr, "ground_albedo", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "ground_albedo", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| if (RNA_enum_get(ptr, "sky_type") == SHD_SKY_NISHITA) { | if (RNA_enum_get(ptr, "sky_type") == SHD_SKY_NISHITA) { | ||||
| uiItemR(layout, ptr, "sun_disc", DEFAULT_FLAGS, NULL, 0); | uiItemR(layout, ptr, "sun_disc", DEFAULT_FLAGS, NULL, 0); | ||||
| uiLayout *col; | |||||
| if (RNA_boolean_get(ptr, "sun_disc")) { | if (RNA_boolean_get(ptr, "sun_disc")) { | ||||
| uiItemR(layout, ptr, "sun_size", DEFAULT_FLAGS, NULL, ICON_NONE); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "sun_size", DEFAULT_FLAGS, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "sun_intensity", DEFAULT_FLAGS, NULL, ICON_NONE); | |||||
| } | } | ||||
| uiLayout *col; | |||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "sun_elevation", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(col, ptr, "sun_elevation", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| uiItemR(col, ptr, "sun_rotation", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(col, ptr, "sun_rotation", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| uiItemR(layout, ptr, "altitude", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "altitude", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "air_density", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(col, ptr, "air_density", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 3,312 Lines • Show Last 20 Lines | |||||