LuxCoreRender / LuxCoreRender/BlendLuxCore

Fix for Asset Bar using Blender v3.1.0: int for assetbar_props.hcount in viewport.py

Open
#762 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
877
Forks
108
PR merge metrics
No merged PRs in 30d

Description

viewport.py file: fix lines 311 and 313

assetbar_props.hcount = int(assetbar_props.height / (ui_props.thumb_size + 2*assetbar_props.margin))
assetbar_props.hcount = int(1)
viewport.py.txt

Steps to reproduce: click asset bar

Screenshots or rendered images:

Error message from Blender console: int instead of float

OS: win 11
Blender version: 3.1.0
LuxCore version: win64 automatic build Mar 28 2022

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open viewport.py and inspect lines 311 and 313, then reproduce the problem by clicking the asset bar in Blender 3.1.0. Confirm the asset bar opens without the console reporting an int/float error and verify the hcount values behave correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender, python
Domain
desktop
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.