From 3dadd9c96ae18484a4e45f3ec41a7642c579a561 Mon Sep 17 00:00:00 2001 From: Maurice Raybaud <mauriceraybaud@hotmail.fr> Date: Sat, 23 Nov 2019 23:29:42 +0100 Subject: [PATCH] pov: fixed loft primitive More post 2.8 api fix --- render_povray/__init__.py | 2 +- render_povray/primitives.py | 4 ++-- render_povray/ui.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/render_povray/__init__.py b/render_povray/__init__.py index b1a4b1593..c68ddf079 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 f2ea49c88..ef2da2301 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 d462f70e3..7fb9c27a6 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() -- GitLab