Skip to content

Commit

Permalink
Fixed camera default values, and fixed emission node creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Nelson authored and Toby Nelson committed Aug 6, 2017
1 parent 34eab3e commit 6d595a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Import LDraw",
"description": "Import LDraw models in .mpd .ldr .l3b and .dat formats",
"author": "Toby Nelson <tobymnelson@gmail.com>",
"version": (1, 1, 1),
"version": (1, 1, 2),
"blender": (2, 76, 0),
"location": "File > Import",
"warning": "",
Expand Down
2 changes: 1 addition & 1 deletion __version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
version = (1, 1, 1)
version = (1, 1, 2)
20 changes: 10 additions & 10 deletions loadldraw/loadldraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1076,15 +1076,15 @@ class LDrawCamera:
"""Data about a camera"""

def __init__(self):
self.vert_fov_degrees = 0.0
self.near = 1.0
self.far = 2.0
self.position = mathutils.Vector((0.0, 0.0, 0.0))
self.target_position = mathutils.Vector((1.0, 1.0, 1.0))
self.up_vector = mathutils.Vector((0.0, 1.0, 0.0))
self.name = "Camera"
self.orthographic = False
self.hidden = False
self.vert_fov_degrees = 30.0
self.near = 25.0
self.far = 50000.0
self.position = mathutils.Vector((0.0, 0.0, 0.0))
self.target_position = mathutils.Vector((1.0, 0.0, 0.0))
self.up_vector = mathutils.Vector((0.0, 1.0, 0.0))
self.name = "Camera"
self.orthographic = False
self.hidden = False

def createCameraNode(self):
camData = bpy.data.cameras.new(self.name)
Expand Down Expand Up @@ -2300,7 +2300,7 @@ def __createBlenderLegoRubberTranslucentNodeGroup():

# **************************************************************************************
def __createBlenderLegoEmissionNodeGroup():
groupName = BlenderMaterials.__getGroupName('Lego Rubber Translucent')
groupName = BlenderMaterials.__getGroupName('Lego Emission')
if bpy.data.node_groups.get(groupName) is None:
debugPrint("createBlenderLegoEmissionNodeGroup #create")

Expand Down

0 comments on commit 6d595a9

Please sign in to comment.