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:
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_camera.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_camera.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_camera.py b/io_scene_gltf2/blender/imp/gltf2_blender_camera.py
index cc73a690..e5f6e3d1 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_camera.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_camera.py
@@ -14,6 +14,7 @@
import bpy
from ..com.gltf2_blender_extras import set_extras
+from io_scene_gltf2.io.imp.gltf2_io_user_extensions import import_user_extensions
class BlenderCamera():
@@ -22,10 +23,12 @@ class BlenderCamera():
raise RuntimeError("%s should not be instantiated" % cls)
@staticmethod
- def create(gltf, camera_id):
+ def create(gltf, vnode, camera_id):
"""Camera creation."""
pycamera = gltf.data.cameras[camera_id]
+ import_user_extensions('gather_import_camera_before_hook', gltf, vnode, pycamera)
+
if not pycamera.name:
pycamera.name = "Camera"
@@ -55,5 +58,4 @@ class BlenderCamera():
# Infinite projection
cam.clip_end = 1e12 # some big number
-
return cam