Commit Graph

265 Commits

Author SHA1 Message Date
David Zhang
376112b392 OAPI: regenerate code 2024-07-09 22:57:00 -04:00
David Zhang
1330487078 OAPI: regenerate code 2024-07-01 10:46:57 -04:00
6fb8ab92e2 Bumped version to 3.6-alpha3 2024-06-27 09:58:55 +02:00
125e9aba23 Bumped version to 3.6-alpha2 2024-06-25 17:53:16 +02:00
9d46822657 Add-on: Job submission: always call self._quit() before stopping
In the job submission operator, always call `self._quit()` before it stops.
It's just good practice to clean up.
2024-06-25 17:50:51 +02:00
1056699e4a Add-on: prevent potentially crashing Blender
Prevent a potential crash of Blender. Calling
`context.window_manager.modal_handler_add(self)` from an operator that does
not actually run modally can cause problems. So now that's called only
when running modally.
2024-06-25 17:49:06 +02:00
de6aecfe81 Add-on: fix mypy errors
Ensure the job settings label is a string, even when the value in the
custom job type's `JOB_INFO` dictionary is of a different type.
2024-06-25 12:13:17 +02:00
963133bd59 Add-on: allow scripted job submissions from Blender
The `bpy.ops.flamenco.submit_job(job_name="jobname")` operator can now be
executed from Python. In that case, it will block the main thread until
the job submission is complete.
2024-06-25 12:11:20 +02:00
152adcb777 Add-on: document timeout parameter of PackThread.poll()
The timeout should be specified in seconds, which wasn't documented before.

No functional changes.
2024-06-25 12:10:28 +02:00
c41eda4a09 Add-on: refactor job submission in preparation for 'execute' support
Refactor the job submission operator, to make it easier to allow executing
the operator (that is, running in the foreground, blocking execution until
submission is done).

No functional changes.
2024-06-25 12:01:18 +02:00
d3a3178300 Bumped version to 3.6-alpha1 2024-06-25 11:26:12 +02:00
c307342f9d OAPI: regenerate code 2024-05-20 10:09:22 +02:00
c5ae2916db Add label to job settings
This gives job type authors more control over how settings are presented
in Blender's job submission GUI. If a job setting does not define a
label, its `key` is used to generate one (like Flamenco 3.5 and older).

Note that this isn't used in the web interface yet.
2024-05-07 11:58:44 +02:00
5ee4871e39 OAPI: regenerate code 2024-05-07 11:55:56 +02:00
68ac3c03e3 Add-on: compatibility with Python 3.9
Remove some Python 3.10 features to make the add-on compatible with py39.
This is the Python version that's bundled with Blender 2.93 LTS, for which
I got a request to see if it could be supported.

The Blender version still isn't officially supported, but this should make
things at least not immediately fail.
2024-04-24 17:32:01 +02:00
d279f91549 Bumped version to 3.6-alpha0 2024-04-24 17:32:01 +02:00
bb772841b7 Revert "Bumped version to 3.6-alpha0"
This reverts commit 7f14e6705d69d05e1bcae3a9ff64dbf2541c47b5. v3.5 still
needs today's date as release date in the changelog.
2024-04-16 11:12:48 +02:00
7f14e6705d Bumped version to 3.6-alpha0 2024-04-16 11:11:54 +02:00
81de246b48 Bumped version to 3.5 2024-04-16 11:03:27 +02:00
Taylor Wiebe
a0cb8735c9 Manager: add optional description to job types
This description will be shown as a tooltip in the job submission UI.
2024-04-04 11:12:42 +02:00
Taylor Wiebe
2bbb7b48d2 OAPI: regenerate code 2024-04-04 11:12:39 +02:00
cfad4e73f9 Bumped version to 3.5-beta1 2024-04-04 10:54:53 +02:00
bce84bf175 Bumped version to 3.5-beta0 2024-04-04 10:38:42 +02:00
3aec8b15ef Add-on: avoid console spam about the scene's job type property
Avoid these warnings on the console:

```
WARN (bpy.rna): source/blender/python/intern/bpy_rna.cc:1339
  pyrna_enum_to_py: current value '0' matches no enum in 'Scene', 'Scene',
  'flamenco_job_type'
```

The solution was two-fold:
- Use a non-empty string as the identifier for the 'Select a Job Type'
  choice.
- Give the property a default value.
2024-03-11 14:32:29 +01:00
3b4da656c9 Add-on: cache manager info in a JSON file
Instead of storing the cached manager info in the Blender preferences,
store the info in a JSON file. The file is located in the user prefs
folder (`~/.config/blender/{version}/config` on Linux).

This also reduces the number of 'refresh' operators to a single one, which
then fetches all necessary info from the Manager.

This fixes an issue (reported via chat) where worker tags were sometimes
not retained across file saves.
2024-03-04 13:08:53 +01:00
f9bb7afcc6 Add-on: fix mypy warnings
No functional changes.
2024-03-04 12:46:38 +01:00
8cf19876c0 OAPI: regenerate code 2024-03-01 08:36:40 +01:00
d9ffe8a1b6 OAPI: regenerate code 2024-02-29 20:38:38 +01:00
94bf65a9e3 Bumped version to 3.5-alpha1 2024-02-26 18:17:19 +01:00
fd9605583f OAPI: regenerate code 2024-02-21 22:16:23 +01:00
1ed893fa84 OAPI: regenerate code 2024-02-05 09:14:31 +01:00
aa2ad35155 Bumped version to 3.5-alpha0 2024-01-17 13:17:35 +01:00
e1306010d7 Bumped version to 3.4 2024-01-12 11:14:50 +01:00
b110f5fb51 Bumped version down to 3.4-beta1
There are a few more things I want to do before releasing 3,4.
2024-01-11 17:17:56 +01:00
0c08a5ad5d Bumped version to 3.4 2024-01-11 16:51:21 +01:00
1095caeddd OAPI: regenerate code
This creates the Python and JavaScript files for the job mass-deletion
operation.
2024-01-11 16:47:25 +01:00
ba02fa9a41 Upgrade BAT to 1.18
This fixes a long-standing issue when packing files on Windows. It also
solves some more bugs, and adds support for packing OpenVDB files.
2024-01-11 16:46:20 +01:00
e6a29e1662 Bumped version to 3.4-beta0 2024-01-05 17:01:29 +01:00
e4f5dff21c Addon: log BAT pack parameters
This can help to debug issues.

Note that these are logged at `INFO` level, and thus probably won't be
seen with Python's default logging configuration.
2024-01-05 11:25:17 +01:00
a6f6f10239 Fix #104263: Error performing BAT pack in Windows with shared storage
Replace calls to `Path.absolute()` and `Path.resolve()` with
`bpathlib.make_absolute(path)`.

The replaced functions can transform drive letters on Windows to UNC
notation. Either all of Flamenco + BAT should be using UNC notation, or
drive letters, but mixing those will cause errors.
2024-01-05 11:23:49 +01:00
b34ad8da90 Addon: fix issue where resubmission was blocked after submission error
Fix an issue where a submission error would keep the BAT status set to
`INVESTIGATING`, which hides the 'Submit to Flamenco' button. In case of
an error, it's now properly set to `ABORTED`, which does show that button.
2024-01-05 11:21:12 +01:00
1a4e0c36e4 Addon: gracefully handle disappearing job type
When refreshing the list of available job types, Blender recreates the
job type property itself, clearing out any previously chosen value. The
add-on tries to restore that previously chosen value, and now also
gracefully handles the case where this job type is no longer available.
2024-01-02 17:13:22 +01:00
a4000f1909 Bumped version to 3.3.1 2023-12-14 12:09:33 +01:00
a6db15fdfa Bump BAT from 1.16 to 1.17 2023-12-14 11:59:16 +01:00
02011f8237 Bumped version to 3.4-alpha0 2023-11-06 15:08:36 +01:00
788b6138b7 Bumped version to 3.3 2023-11-06 11:56:48 +01:00
0333fe1383 Bumped version to 3.3-beta3 2023-11-02 16:29:56 +01:00
30da72a9b7 Upgrade BAT to 1.16 2023-11-02 15:49:38 +01:00
90186d7a79 Fix mypy error
No functional changes.
2023-11-02 13:50:45 +01:00
01f2e6d558 Bumped version to 3.3-beta2 2023-10-31 14:54:20 +01:00