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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2020-01-21 18:57:54 +0300
committerVilém Duha <vilda.novak@gmail.com>2020-01-28 15:45:44 +0300
commit7c3d8127daf1f32858076484d07fd8a6e96a3fb0 (patch)
tree5ba32c12caef1c095fd348ae8aef0a9cda7d6c6a /blenderkit/upload.py
parent11491c5be04d5052632265e0fba7275db2f088e4 (diff)
BlenderKit: add several autotags
megapixels checks number of total pixels in textures. procedural, node count and texture count will help in heuristics and advanced searches.
Diffstat (limited to 'blenderkit/upload.py')
-rw-r--r--blenderkit/upload.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/blenderkit/upload.py b/blenderkit/upload.py
index eaa0e6d3..f2f295e5 100644
--- a/blenderkit/upload.py
+++ b/blenderkit/upload.py
@@ -232,6 +232,10 @@ def get_upload_data(self, context, asset_type):
"manifold": props.manifold,
"objectCount": props.object_count,
+ "procedural": props.is_procedural,
+ "nodeCount": props.node_count,
+ "textureCount": props.texture_count,
+ "megapixels": round(props.total_megapixels/ 1000000),
# "scene": props.is_scene,
}
if props.use_design_year:
@@ -359,6 +363,7 @@ def get_upload_data(self, context, asset_type):
"procedural": props.is_procedural,
"nodeCount": props.node_count,
"textureCount": props.texture_count,
+ "megapixels": round(props.total_megapixels/ 1000000),
}