[Bf-extensions-cvs] [3dadd9c9] master: pov: fixed loft primitive
Maurice Raybaud
noreply at git.blender.org
Sat Nov 23 23:29:50 CET 2019
Commit: 3dadd9c96ae18484a4e45f3ec41a7642c579a561
Author: Maurice Raybaud
Date: Sat Nov 23 23:29:42 2019 +0100
Branches: master
https://developer.blender.org/rBA3dadd9c96ae18484a4e45f3ec41a7642c579a561
pov: fixed loft primitive
More post 2.8 api fix
===================================================================
M render_povray/__init__.py
M render_povray/primitives.py
M render_povray/ui.py
===================================================================
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index b1a4b159..c68ddf07 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -27,7 +27,7 @@ bl_info = {
"Constantin Rahn, "
"Silvio Falcinelli",
"version": (0, 1, 0),
- "blender": (2, 80, 0),
+ "blender": (2, 81, 0),
"location": "Render Properties > Render Engine > Persistence of Vision",
"description": "Persistence of Vision integration for blender",
"wiki_url": "https://archive.blender.org/wiki/index.php/"
diff --git a/render_povray/primitives.py b/render_povray/primitives.py
index f2ea49c8..ef2da230 100644
--- a/render_povray/primitives.py
+++ b/render_povray/primitives.py
@@ -505,7 +505,7 @@ class POVRAY_OT_loft_add(bpy.types.Operator):
loftData = bpy.data.curves.new('Loft', type='CURVE')
loftData.dimensions = '3D'
loftData.resolution_u = 2
- loftData.show_normal_face = False
+ # loftData.show_normal_face = False # deprecated in 2.8
n=props.loft_n
thick = props.loft_thick
side = props.loft_rings_side
@@ -1126,7 +1126,7 @@ class POVRAY_OT_height_field_add(bpy.types.Operator, ImportHelper):
hf_tex = bpy.data.textures.new('%s_hf_image'%im_name, type = 'IMAGE')
hf_tex.image = img
mat = bpy.data.materials.new('Tex_%s_hf'%im_name)
- hf_slot = mat.texture_slots.create(-1)
+ hf_slot = mat.pov_texture_slots.create(-1)
hf_slot.texture = hf_tex
#layers = 20*[False]
#layers[0] = True
diff --git a/render_povray/ui.py b/render_povray/ui.py
index d462f70e..7fb9c27a 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -1768,7 +1768,7 @@ class MATERIAL_PT_strand(MaterialButtonsPanel, Panel):
col.prop(tan, "width_fade")
ob = context.object
if ob and ob.type == 'MESH':
- col.prop_search(tan, "uv_layer", ob.data, "uv_textures", text="")
+ col.prop_search(tan, "uv_layer", ob.data, "tessface_uv_textures", text="")
else:
col.prop(tan, "uv_layer", text="")
col.separator()
More information about the Bf-extensions-cvs
mailing list