Maniphest T100219

Willow Tree Not Generating In Sapling Tree Gen
Closed, Duplicate

Assigned To
None
Authored By
Lev Shifrin (Pythalous)
Aug 5 2022, 10:14 AM
Tags
  • Add-ons (Community)
Subscribers
Lev Shifrin (Pythalous)
Omar Emara (OmarSquircleArt)
Pratik Borhade (PratikPB2123)

Description

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.91

Blender Version
Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: rBbcfdb14560e7
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Sapling Tree Gen (0, 3, 4)
Author: Andrew Hale (TrumanBlending), Aaron Buchler, CansecoGPC

Short description of error
[When trying to load willow tree in Sapling Tree Gen, it gives a "Report: Error" that has something to do with Python]

Exact steps for others to reproduce the error
[Have the Sapling Tree Gen enabled in your add-ons tab. Then open up the Sapling tree gen by creating a curve and then clicking on it. Then open up the tab for Sapling Tree gen, click on "load preset", and click on willow. Then the error should pop up as it did for me.]
[Based on the default startup or an attached .blend file (as simple as possible)]

Event Timeline

Lev Shifrin (Pythalous) created this task.Aug 5 2022, 10:14 AM
Omar Emara (OmarSquircleArt) changed the task status from Needs Triage to Confirmed.Aug 5 2022, 10:44 AM
Omar Emara (OmarSquircleArt) added a subscriber: Omar Emara (OmarSquircleArt).
Traceback (most recent call last):
  File "/home/omar/projects/blender/build/bin/3.4/scripts/addons/add_curve_sapling/__init__.py", line 1086, in execute
    setattr(self, a, b)
  File "/home/omar/projects/blender/build/bin/3.4/scripts/modules/bpy_types.py", line 823, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: CURVE_OT_tree_add.leaves expected an int type, not float
Error: Python: Traceback (most recent call last):
  File "/home/omar/projects/blender/build/bin/3.4/scripts/addons/add_curve_sapling/__init__.py", line 1086, in execute
    setattr(self, a, b)
  File "/home/omar/projects/blender/build/bin/3.4/scripts/modules/bpy_types.py", line 823, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: CURVE_OT_tree_add.leaves expected an int type, not float
Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).Aug 5 2022, 11:54 AM

Seems python 3.10 upgrade has affected this. Simple int cast will fix this. Omar could you commit it directly if you've time?

Omar Emara (OmarSquircleArt) added a comment.Aug 5 2022, 12:00 PM

@Pratik Borhade (PratikPB2123) I could, but I am not sure about the policy regarding committing simple fixes directly without review. Many of the bugs in add-on might be considered simple, so I am not sure.

Pratik Borhade (PratikPB2123) added a comment.Aug 5 2022, 1:45 PM

ok

Omar Emara (OmarSquircleArt) closed this task as a duplicate of T101985: Sapling Tree_Gen addon - selecting 'willow' Load Preset error.Oct 26 2022, 1:30 PM