Changeset View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 440 Lines • ▼ Show 20 Lines | static const EnumPropertyItem rna_node_geometry_point_distribute_method_items[] = { | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| #define ITEM_ATTRIBUTE \ | #define ITEM_ATTRIBUTE \ | ||||
| { \ | { \ | ||||
| GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE, "ATTRIBUTE", 0, "Attribute", "" \ | GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE, "ATTRIBUTE", 0, "Attribute", "" \ | ||||
| } | } | ||||
JacquesLucke: Tooltip mentions "object". | |||||
Done Inline ActionsThere is no "input object" in this context. I believe this should discuss the collection offset instead HooglyBoogly: There is no "input object" in this context. I believe this should discuss the collection offset… | |||||
Done Inline ActionsTooltip STILL mentions "object" dfelinto: Tooltip STILL mentions "object" | |||||
Done Inline ActionsThe object info mentions "object" as well. zeddb: The object info mentions "object" as well.
I've modified the tooltip to be more clear that it… | |||||
| #define ITEM_FLOAT \ | #define ITEM_FLOAT \ | ||||
| { \ | { \ | ||||
| GEO_NODE_ATTRIBUTE_INPUT_FLOAT, "FLOAT", 0, "Float", "" \ | GEO_NODE_ATTRIBUTE_INPUT_FLOAT, "FLOAT", 0, "Float", "" \ | ||||
| } | } | ||||
| #define ITEM_VECTOR \ | #define ITEM_VECTOR \ | ||||
| { \ | { \ | ||||
| GEO_NODE_ATTRIBUTE_INPUT_VECTOR, "VECTOR", 0, "Vector", "" \ | GEO_NODE_ATTRIBUTE_INPUT_VECTOR, "VECTOR", 0, "Vector", "" \ | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 8,436 Lines • ▼ Show 20 Lines | static EnumPropertyItem resolution_mode_items[] = { | ||||
| "VOXEL_SIZE", | "VOXEL_SIZE", | ||||
| 0, | 0, | ||||
| "Size", | "Size", | ||||
| "Specify the voxel side length"}, | "Specify the voxel side length"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryPointsToVolume", "storage"); | RNA_def_struct_sdna_from(srna, "NodeGeometryPointsToVolume", "storage"); | ||||
Done Inline ActionsCan you use the same tooltip as the object info node? dfelinto: Can you use the same tooltip as the object info node? | |||||
| prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "resolution_mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, resolution_mode_items); | RNA_def_property_enum_items(prop, resolution_mode_items); | ||||
| RNA_def_property_ui_text(prop, "Resolution Mode", "How the voxel size is specified"); | RNA_def_property_ui_text(prop, "Resolution Mode", "How the voxel size is specified"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | ||||
| prop = RNA_def_property(srna, "input_type_radius", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "input_type_radius", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_float); | RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_float); | ||||
| RNA_def_property_ui_text(prop, "Radius Input Type", ""); | RNA_def_property_ui_text(prop, "Radius Input Type", ""); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | ||||
| } | } | ||||
| static void def_geo_collection_info(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| static const EnumPropertyItem rna_node_geometry_collection_info_transform_space_items[] = { | |||||
| {GEO_NODE_TRANSFORM_SPACE_ORIGINAL, | |||||
| "ORIGINAL", | |||||
| 0, | |||||
| "Original", | |||||
| "Output the geometry relative to the collection offset"}, | |||||
Not Done Inline ActionsThis still talks about an "input object"... JacquesLucke: This still talks about an "input object"... | |||||
Not Done Inline ActionsIsn't this talking about the modifier object though? zeddb: Isn't this talking about the modifier object though?
The collection does not have any transform… | |||||
Not Done Inline Actions@Sebastian Parborg (zeddb) if you look at the object info node you can see that there is "input object" and "modified object": Relative: "Bring the input object geometry, location, rotation and scale into the modified object, maintaining the relative position between the two objects in the scene". dfelinto: @zeddb if you look at the object info node you can see that there is "input object" and… | |||||
Not Done Inline ActionsThat is for the relative tool tip and not for the "original" tool tip that were a discussing now. Other tip reads: We don't use the info node input object transform in anyway, so we must be talking to about the modifier object here. However if I'm wrong then I would like to have some suggestions on what to change it to. zeddb: That is for the relative tool tip and not for the "original" tool tip that were a discussing… | |||||
| {GEO_NODE_TRANSFORM_SPACE_RELATIVE, | |||||
| "RELATIVE", | |||||
| 0, | |||||
| "Relative", | |||||
Done Inline ActionsI'm also not sure why these need to be so different from the object info tooltips, aside from the obvious differences. I know this is usually not a deal breaker, but we're adding the node right now, this is the time to get it right. Something like these mirrors the existing tooltips much more closely. HooglyBoogly: I'm also not sure why these need to be so different from the object info tooltips, aside from… | |||||
Done Inline ActionsThe issue is that I think those two are wrong. Let me explain: We are not outputting the geometry relative to the input object. We are outputting the geometry with the input object transform. So it is not relative, it is literately the input object transform. Is more correct and is more verbose I feel, relatively speaking ;) Bring the input object geometry into the modified object, maintaining the relative position between the objects in the scene "relative position" is wrong here. The correct tip would be: However something along the lines of "Keep it as is" tip is easier to understand. After writing all this down, I realized that I think we should rethink the "Original/Relative" labels again. However we could also see it as a selector for which objects transform we should use. zeddb: The issue is that I think those two are wrong.
Let me explain:
`Output the geometry relative… | |||||
| "Bring the input collection geometry into the modified object, maintaining the relative " | |||||
| "position between the objects in the scene."}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryCollectionInfo", "storage"); | |||||
| prop = RNA_def_property(srna, "transform_space", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_node_geometry_collection_info_transform_space_items); | |||||
| RNA_def_property_ui_text(prop, "Transform Space", "The transformation of the geometry output"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| /* -------------------------------------------------------------------------- */ | /* -------------------------------------------------------------------------- */ | ||||
| static void rna_def_shader_node(BlenderRNA *brna) | static void rna_def_shader_node(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| srna = RNA_def_struct(brna, "ShaderNode", "NodeInternal"); | srna = RNA_def_struct(brna, "ShaderNode", "NodeInternal"); | ||||
| RNA_def_struct_ui_text(srna, "Shader Node", "Material shader node"); | RNA_def_struct_ui_text(srna, "Shader Node", "Material shader node"); | ||||
| ▲ Show 20 Lines • Show All 1,912 Lines • Show Last 20 Lines | |||||
Tooltip mentions "object".