Blender Git Commits

Blender Git "greasepencil-refactor" branch commits.

Page: 238 / 287

October 4, 2017, 11:52 (GMT)
Fix: Newly created palettes for palette slots got an extra/unneeded user
October 4, 2017, 11:52 (GMT)
Various fixes to get GP Palettes UI working

* Switched the UI to using the "active_gpencil_palette" (and palette color) context
vars (in favor of the "active_palette"/color) ones for retrieving the active
palette. For some unknown reason, context.active_object returns null when
trying to use it in the Properties Editor when drawing UI layouts, but it works
perfectly fine when operators calling operator.poll() or running operators.

* Sanitise many of the hacks added to the Palette operators to make them usable
for Grease Pencil-linked palettes (e.g. remove special hacky args)

* Add RNA support for getting the active GP palette slot
October 4, 2017, 11:52 (GMT)
BKE_palette_get_active_from_context(C) now retrieves GP palettes from the active palette slot
if the active object is a GP object

This makes it possible to reuse all the Palette operators as-is,
without having to add a lot of GP-specific duplicates, and also
simplifies much of the context polling stuff.
October 4, 2017, 11:52 (GMT)
Palette Slots - Add UI panel for Palette slots
October 4, 2017, 11:52 (GMT)
Code Cleanup: Move panel definitions for Palette-based colors to the Material panels file

Annotations (GP in 2D editors) will not be using this stuff,
as they will not have most of the fancy drawing options (as
they are based on the traditional 2D api instead).
October 4, 2017, 11:52 (GMT)
Fix: Don't create redundant palette for Monkey
October 4, 2017, 11:52 (GMT)
Palette Slots - Changing assigned palette via RNA calls relevant API func to set things correctly
October 4, 2017, 11:52 (GMT)
Fix: Add 2D monkey adds palette link
October 4, 2017, 11:52 (GMT)
Palette Slots - Replace all places initialising GP palettes
October 4, 2017, 11:52 (GMT)
Fix: Strokes weren't visible while drawing

Missed this usage of palettes in previous commit
October 4, 2017, 11:52 (GMT)
GP: Modify existing operators to use new palette api's
October 4, 2017, 11:52 (GMT)
Cleanup - Change naming of Palette Slot vars to be easier to type
October 4, 2017, 11:52 (GMT)
Code Cleanup - Group all palette initialisation stuff together in same function
October 4, 2017, 11:52 (GMT)
Palette Slots: Internal API's for managing Palettes
October 3, 2017, 16:28 (GMT)
Merge branch 'blender2.8' into greasepencil-object
October 3, 2017, 16:27 (GMT)
Remove antialiasing code

These functions are not working here. Need a new approach using FXAA.
October 3, 2017, 15:58 (GMT)
Add function to fix palette bug

Added a function to fix old files with palette set to NULL by program error.

This fix will be removed in the future, but now it's required to work in open movie files.
October 2, 2017, 18:12 (GMT)
Merge branch 'blender2.8' into greasepencil-object
October 2, 2017, 09:13 (GMT)
Cleanup comment
October 2, 2017, 09:07 (GMT)
Add Antialiasing to Grease Pencil
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021