Skip to content

Commit

Permalink
Hotfix flip_fluid loading, update github templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pvl-bot committed Aug 16, 2023
1 parent 4ae5d20 commit f26a82e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
32 changes: 15 additions & 17 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
---
name: Bug report
about: Report an issue with using or installing infinigen
title: "[BUG]"
labels: ''
title: ""
labels: 'bug'
assignees: ''

---

**Describe the bug**
# Describe the bug
A clear and concise description of what the bug is.

**Steps to Reproduce**
- What version of the code were you using? Tell us the output of `git log -n 1`
## Steps to Reproduce

### What version of the code were you using?
'''
$ git log -n 1
...
What is the output of `git log -n 1`?
'''

- What command did you run?
```
Add your command here
### What command did you run?
```
- What are your output logs?
```
Add your logs here, preferably from a job run with --debug
```

** (If this is your first time running Infinigen) What are the full output logs of `install.sh` ?**
### What are your FULL output logs?
```
Add your install.sh logs here
```

**Platform**
### If this is your first time running Infinigen, what are the full output logs of `install.sh` ?**


### Platform
- OS & OS Version:
- GPU (?) :
- GPU Driver Version (?) :
- RAM (GB):

**Additional context**
# Additional context
Add any other context about the problem here.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/request.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Request
about: Request a feature!
title: "[REQUEST]"
labels: ''
title: ""
labels: 'enhancement'
assignees: ''

---
Expand Down
9 changes: 5 additions & 4 deletions worldgen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
from placement.factory import make_asset_collection
from util import blender as butil
from util import exporting
from util.logging import Timer, save_polycounts, create_text_file
from util.logging import Timer, save_polycounts, create_text_file, Suppress
from util.math import FixedSeed, int_hash
from util.pipeline import RandomStageExecutor
from util.random import sample_registry
Expand Down Expand Up @@ -301,9 +301,10 @@ def execute_tasks(

for name in ['ant_landscape', 'real_snow', 'flip_fluids_addon']:
try:
bpy.ops.preferences.addon_enable(module=name)
except ModuleNotFoundError as e:
logging.warning(f'Could not load addon "{name}". {e}')
with Suppress():
bpy.ops.preferences.addon_enable(module=name)
except Exception as e:
logging.warning(f'Could not load addon "{name}"')

bpy.context.preferences.system.scrollback = 0
bpy.context.preferences.edit.undo_steps = 0
Expand Down

0 comments on commit f26a82e

Please sign in to comment.