Commit Graph

180 Commits

Author SHA1 Message Date
Sybren A. Stüvel 3c9e4e2873 Give users the option to open a webbrowser after sharing an image.
The addon now also uses the home project URL from the project itself,
rather than hard-coding it.
2016-07-07 11:43:01 +02:00
Sybren A. Stüvel 4762f0292d Added support for sharing packed images. 2016-07-07 11:09:30 +02:00
Sybren A. Stüvel 959e83229b Allow execution of the file sharing operator
(rather than requiring INVOKE_DEFAULT)
2016-07-06 16:25:31 +02:00
Sybren A. Stüvel 662b6cf221 Choose default target='DATABLOCK' 2016-07-06 16:25:10 +02:00
Sybren A. Stüvel 96616dbdff Always create new nodes on the cloud, and prevent cache issue.
The cache issue: this caused etag mismatches when sharing a file multiple
times using always_create_new_node=False. Even though we don't use this
option right now, it should be easy to enable.
2016-07-06 16:24:55 +02:00
Sybren A. Stüvel dbbffcc28e Some protection against sharing dirty image datablocks.
We can save dirty files, either to disk or the cloud, but I think that's
a bad idea to:

- Share unsaved data to the cloud; users can assume it's saved
  to disk and close blender, losing their file.
- Save unsaved data first; this can overwrite a file a user
  didn't want to overwrite.

The clearest way is simply to refuse to handle dirty datablocks.
2016-07-06 16:23:33 +02:00
Sybren A. Stüvel 0a1f1972da Support for uploading render results. 2016-07-06 15:48:55 +02:00
Sybren A. Stüvel c9a92dd5d1 Added start of image sharing.
Sharing an image datablock works, if it has been saved and not packed.
Directly sharing a file, and dirty/packed datablocks are for a future
commit.
2016-07-06 15:20:50 +02:00
Sybren A. Stüvel 1c2def3b84 Moved some code from settings_sync.py to home_project.py and pillar.py 2016-07-05 17:26:26 +02:00
Sybren A. Stüvel e29b61b649 Using pillarsdk.Node.create_asset_from_file() 2016-07-05 16:47:37 +02:00
Sybren A. Stüvel 1d1c8cf3d6 Bumped version to 1.2.2 version-1.2.2 2016-06-30 18:43:51 +02:00
Sybren A. Stüvel fc01e32f0d Added note about restarting Blender version-1.2.1 2016-06-30 14:58:26 +02:00
Sybren A. Stüvel 7577b348a5 Prevent writing bytecode when building zip 2016-06-30 14:53:27 +02:00
Sybren A. Stüvel be99bcb250 Using "your Blender Cloud" instead of "your home project". 2016-06-30 14:43:04 +02:00
Sybren A. Stüvel 2190bd795e Bumped version to 1.2.1 2016-06-29 11:39:43 +02:00
Sybren A. Stüvel 76d1f88c4e Prevent syncing of any file path in the 'Files' tab. 2016-06-29 11:32:25 +02:00
Sybren A. Stüvel f0b7a0451d Some UI tweaks version-1.2.0 2016-06-28 16:55:35 +02:00
Sybren A. Stüvel 6eab5ba0af Work around RuntimeError unregistering the texture browser operator. 2016-06-28 16:41:31 +02:00
Sybren A. Stüvel d457c77b19 Monkey-patch Requests < 2.6.1 to prevent crash on 2.77a/Mac 2016-06-28 16:07:08 +02:00
Sybren A. Stüvel ef70d20a77 Bumped version to 1.2.0 in setup.py 2016-06-28 15:34:05 +02:00
Sybren A. Stüvel db10495e7f Bumped pillarsdk requirement to 1.3.0 2016-06-28 15:32:05 +02:00
Sybren A. Stüvel 586905a183 If there are multiple wheels that match, load the latest one.
This should allow users to upgrade the addon by overwriting an older
version, instead of requiring a remove-and-install sequence.
2016-06-28 15:31:56 +02:00
Sybren A. Stüvel 822c8daf07 Gracefully handle use of sync feature without home project access.
This is for people that aren't part of the AB-testing group, who still
used this version of the addon.
2016-06-28 15:00:14 +02:00
Sybren A. Stüvel e044607d91 Allow non-subscribers to use Blender Sync 2016-06-28 14:29:51 +02:00
Sybren A. Stüvel e484d6496c Don't clear report when there was an error getting available Blender versions 2016-06-28 14:29:40 +02:00
Sybren A. Stüvel 78d567793e Depend on Pillar to create the 'Blender Sync' group node. 2016-06-28 14:29:12 +02:00
Sybren A. Stüvel 7e105167c0 Don't sync bookmarks and recent files (for now).
These files can be restored when we allow users to pick what they sync.
2016-06-28 14:28:39 +02:00
Sybren A. Stüvel d53938e03b Check specific roles for specific addon features. 2016-06-24 15:22:12 +02:00
Sybren A. Stüvel 0f26551368 Texture browser now uses pillar.PillarOperatorMixin too. 2016-06-24 15:00:38 +02:00
Sybren A. Stüvel 645529bf35 Sync: gracefully handle credential sync errors 2016-06-24 14:46:27 +02:00
Sybren A. Stüvel 4d2314e08f Hide some things in the UI except when bpy.app.debug=True 2016-06-24 14:46:13 +02:00
Sybren A. Stüvel a5df609d95 Bumped version to 1.2.0, and moved from TESTING to OFFICIAL support 2016-06-24 14:02:19 +02:00
Sybren A. Stüvel e9a08c11b3 Renamed addon to just 'Blender Cloud'
It does more than just be the texture browser, namely Blender Sync!
2016-06-24 13:48:55 +02:00
Sybren A. Stüvel 7bdfa28a3f After pushing, change the 'pull' version to the current version of Blender.
Or to the latest version, if by some mistake somewhere the current push
isn't available after all.
2016-06-24 13:03:10 +02:00
Sybren A. Stüvel e73e9d3df7 Nice UI and proper refreshing versions & loading settings. 2016-06-24 12:53:49 +02:00
Sybren A. Stüvel 671e9f31fa Nicer UI, and Blender Sync all in one operator. 2016-06-23 19:00:47 +02:00
Sybren A. Stüvel 6de026c8e2 Sync: new operator allows to choose which Blender version to pull.
The user gets a popup with the Blender versions for which they have
synced settings, can select one, and it'll pull those settings in.

There is an issue, though: the PULL action operator doesn't report to
the GUI the way it's written now. Will look at that later.
2016-06-23 11:09:19 +02:00
Sybren A. Stüvel 6470feac7c Moved some functions outside of sync operator 2016-06-23 10:35:30 +02:00
Sybren A. Stüvel 6462561f2d Moved some code around. 2016-06-22 16:48:16 +02:00
Sybren A. Stüvel 2080f92558 Removed now-unused code 2016-06-22 16:26:38 +02:00
Sybren A. Stüvel a6f5a16583 Don't create folder structure on Cloud when pulling settings.
Instead, an error is shown that there are no synced settings. This will
have to be replaced, allowing the user to select from settings that
are available for other Blender versions.
2016-06-22 16:22:20 +02:00
Sybren A. Stüvel 6f376027e5 Update userpref.blend with machine-local settings before moving it place.
After pulling settings from the Cloud, we update userpref.blend with
machine-local settings before we move it to ~/.config/blender/{ver}/config
2016-06-22 16:04:03 +02:00
Sybren A. Stüvel 2ee9d1ebfa Added callback that can be an 'async def' function 2016-06-22 15:17:35 +02:00
Sybren A. Stüvel ed02816872 Sync to Blender version specific group node 2016-06-21 17:55:18 +02:00
Sybren A. Stüvel d100232428 Also mention my fork of CacheControl in requirements.txt 2016-06-21 17:54:58 +02:00
Sybren A. Stüvel 9044bfadb9 Sync pull: Make a backup copy of the files before overwriting them 2016-06-21 16:30:58 +02:00
Sybren A. Stüvel 4cdf2cee9c Also save userprefs after restoring local-only settings. 2016-06-21 16:30:42 +02:00
Sybren A. Stüvel 9c527520a9 Prevent overwriting of certain user preferences.
Those prefs are considered system-specific, such as the temporary
directory and CUDA compute device.
2016-06-17 16:47:32 +02:00
Sybren A. Stüvel 56137c485f Nicer resetting of _loop_kicking_operator_running 2016-06-17 16:27:45 +02:00
Sybren A. Stüvel eb77461ca0 Removed more caching + added explanation why caching is dangerous here. 2016-06-17 16:22:11 +02:00