Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-03-16 18:32:56 +0300
committerJacques Lucke <jacques@blender.org>2021-03-16 18:32:56 +0300
commit8212697830dfa651803005a3c309182a9241887c (patch)
tree3388becf819e71724386eae13c5342b123512c92 /source
parentffa0420ae7aa4594e4e03719c5485ab79e4ceb62 (diff)
support default weighttemp-asset-tools-prototype
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesdna/DNA_node_types.h2
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index ef8231c116b..ae0ac054671 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -545,6 +545,8 @@ typedef struct AssetTool {
struct AssetTool *prev;
char weight_group_name[64];
+ float default_weight;
+ char _pad[4];
} AssetTool;
/* socket value structs for input buttons
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 0418cf3e2c3..cbc5a8cfc0d 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -10993,6 +10993,10 @@ static void rna_def_asset_tool(BlenderRNA *brna)
prop = RNA_def_property(srna, "weight_group_name", PROP_STRING, PROP_NONE);
RNA_def_property_ui_text(prop, "Weight Group Name", "Name of a vertex group");
+
+ prop = RNA_def_property(srna, "default_weight", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_ui_text(prop, "Default Weight", "");
+ RNA_def_property_ui_range(prop, 0.0, 1.0f, 0.1, 4);
}
static void rna_def_asset_tool_group(BlenderRNA *brna)