From dfb46cecbe905cb074e7bbc17c0625e04b2acd11 Mon Sep 17 00:00:00 2001 From: notroid5 <87585310+notroid5@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:40:38 +0200 Subject: [PATCH] Replace deprecated `Color8` (#11361) * Replaced deprecated `Color8` --------- Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- tutorials/plugins/editor/import_plugins.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/plugins/editor/import_plugins.rst b/tutorials/plugins/editor/import_plugins.rst index 1bb1daae2..84cef3791 100644 --- a/tutorials/plugins/editor/import_plugins.rst +++ b/tutorials/plugins/editor/import_plugins.rst @@ -315,9 +315,9 @@ that the import wasn't successful. var color if options.use_red_anyway: - color = Color8(255, 0, 0) + color = Color.from_rgba8(255, 0, 0) else: - color = Color8(int(channels[0]), int(channels[1]), int(channels[2])) + color = Color.from_rgba8(int(channels[0]), int(channels[1]), int(channels[2])) This code takes the line of the file it read before and splits it in pieces that are separated by a comma. If there are more or less than the three values,