Julian Eisel JulianEisel
  • Amsterdam
  • Asset system (development lead), UI (developer & module coordindator), VR (initial development).

  • Joined on 2013-12-12
Julian Eisel commented on pull request blender/blender#105812 2023-04-11 18:21:00 +02:00
Assets: Do Not Show Blank Read-Only Metadata

This should use a Python docstring, like in my snippet.

Julian Eisel suggested changes for blender/blender#105812 2023-04-11 18:21:00 +02:00
Assets: Do Not Show Blank Read-Only Metadata
Julian Eisel commented on pull request blender/blender#105812 2023-04-11 18:21:00 +02:00
Assets: Do Not Show Blank Read-Only Metadata

Instead of repeating asset_file_handle.asset_data every time, just declare an asset_data variable.

Julian Eisel commented on pull request blender/blender#105812 2023-04-11 18:20:59 +02:00
Assets: Do Not Show Blank Read-Only Metadata

Would move this into the ASSETBROWSER_PT_metadata() class, to keep the context more clear. Outside of that class a name like add_metadata_prop() isn't very clear. (Also there's no point in @staticmethod outside of a class).

Julian Eisel commented on pull request blender/blender#106189 2023-04-11 16:25:01 +02:00
UI: Tooltips for Assets

Let's not have functions with such big-ish if-else if-else blocks. Simply set a dedicated tooltip callback for assets, this can be much more concise then. All we need here is the asset representation I think, all the other variables/data just add noise.

Julian Eisel suggested changes for blender/blender#106189 2023-04-11 16:25:01 +02:00
UI: Tooltips for Assets

Let's treat asset and file tooltips as separate patches. For assets things are straight forward, for files further discussion may be needed (like which information to display there, formatting, etc). I'm also not convinced the tooltip is the best place for this information, we could also display file information in the sidebar or in some extra region (like some other file browsers do).

Julian Eisel commented on pull request blender/blender#106189 2023-04-11 16:25:01 +02:00
UI: Tooltips for Assets

While using "minimal" .blend reading, BLO_version_from_file() still has to open a .blend file from disk, which can't just be assumed to be entirely trivial. E.g. on network drives, displaying this tooltip could freeze Blender for seconds, since everything happens on the main thread. We could query the version on file list loading (which uses a thread).

Julian Eisel pushed to main at blender/blender 2023-04-11 15:36:35 +02:00
d299b1157f Cleanup: Update versioning code after subversion bump
Julian Eisel deleted branch temp-multiple-script-dirs from JulianEisel/blender 2023-04-11 15:21:09 +02:00
Julian Eisel merged pull request blender/blender#104876 2023-04-11 15:21:07 +02:00
Python: Support multiple custom script directories in Preferences
Julian Eisel pushed to main at blender/blender 2023-04-11 15:21:06 +02:00
ba25023d22 Python: Support multiple custom script directories in Preferences
Julian Eisel pushed to temp-multiple-script-dirs at JulianEisel/blender 2023-04-11 15:06:54 +02:00
b98771e218 Merge branch 'main' into temp-multiple-script-dirs
dc402a8b96 Core: Fix ASAN on Clang-14 / Linux
d07b82d16d GPU: Use Same Type in Comparisons.
cd5ada3f7d I18n: Updated UI translations from SVN repo (r6454).
bca2090724 Gitea: update bug report template for security policy
Compare 36 commits »
Julian Eisel commented on pull request blender/blender#105812 2023-04-11 11:49:44 +02:00
Assets: Do Not Show Blank Read-Only Metadata

Would add a function to avoid duplication, give further info in a comment, and to make clear that each conditional follows the same logic:

Julian Eisel commented on pull request blender/blender#105841 2023-04-11 11:24:56 +02:00
Assets: Implement Traits

Again System defined is a bit vague. Would just add a /** See #AssetTrait. */ comment here.

Julian Eisel commented on pull request blender/blender#105841 2023-04-11 11:22:19 +02:00
Assets: Implement Traits

Suggest: "Keywords describing type characteristics of an asset. Used to determine how an asset should behave, and to provide additional information and filtering options to the user"

Julian Eisel suggested changes for blender/blender#105841 2023-04-11 11:15:35 +02:00
Assets: Implement Traits

Could you remove the ensure_traits_fn callbacks for now as noted in blender/blender#105808 (comment)? We don't need most of these traits yet, I rather add traits as needed, and don't set a whole bunch of unused traits just because they might be useful in future. (Although to a degree we may have to do that for forwards compatibility.)

Julian Eisel commented on pull request blender/blender#105841 2023-04-11 11:15:35 +02:00
Assets: Implement Traits

No need for the name as trait.

Julian Eisel commented on pull request blender/blender#105841 2023-04-11 11:15:34 +02:00
Assets: Implement Traits

Shouldn't be needed since traits are never editable.

Julian Eisel commented on pull request blender/blender#105841 2023-04-11 11:15:34 +02:00
Assets: Implement Traits

Why would we store the UI description as trait? But again, I wouldn't even define the ensure_traits_fn anyway, and just let the nodes module decide how they want to use traits.

Julian Eisel commented on pull request blender/blender#105841 2023-04-11 11:15:34 +02:00
Assets: Implement Traits

There are two problems with get_obdata_defname():