Upgraded VRViewer:
- upgraded vrviewer to latest master (ffbc9ff4bf0c550cc79003ec188ca16e9e83c31e) - added some notes on how to upgrade to the readme - added support for setting default yaw angle - added support for float properties
This commit is contained in:
@@ -7,6 +7,11 @@ node_type_hdri = {
|
||||
'description': 'HDR Image',
|
||||
'parent': ['group_hdri'],
|
||||
'dyn_schema': {
|
||||
# Default yaw angle in degrees.
|
||||
'default_yaw': {
|
||||
'type': 'float',
|
||||
'default': 0.0
|
||||
},
|
||||
'status': {
|
||||
'type': 'string',
|
||||
'allowed': [
|
||||
|
@@ -85,7 +85,7 @@ def add_form_properties(form_class, node_type):
|
||||
elif field_type == 'integer':
|
||||
field = IntegerField(prop_name, default=0)
|
||||
elif field_type == 'float':
|
||||
field = FloatField(prop_name, default=0)
|
||||
field = FloatField(prop_name, default=0.0)
|
||||
elif field_type == 'boolean':
|
||||
field = BooleanField(prop_name)
|
||||
elif field_type == 'objectid' and 'data_relation' in schema_prop:
|
||||
@@ -172,6 +172,11 @@ def process_node_form(form, node_id=None, node_type=None, user=None):
|
||||
data = 0
|
||||
else:
|
||||
data = int(form[prop_name].data)
|
||||
elif schema_prop['type'] == 'float':
|
||||
if not data:
|
||||
data = None
|
||||
else:
|
||||
data = float(form[prop_name].data)
|
||||
elif schema_prop['type'] == 'datetime':
|
||||
data = datetime.strftime(data, current_app.config['RFC1123_DATE_FORMAT'])
|
||||
elif schema_prop['type'] == 'list':
|
||||
|
11
pillar/web/static/assets/vrview/embed.min.js
vendored
Normal file
11
pillar/web/static/assets/vrview/embed.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
pillar/web/static/assets/vrview/loading.gif
Normal file
BIN
pillar/web/static/assets/vrview/loading.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
511
pillar/web/static/assets/vrview/three.min.js
vendored
Normal file
511
pillar/web/static/assets/vrview/three.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user