-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy path__init__.py
More file actions
70 lines (59 loc) · 2.67 KB
/
Copy path__init__.py
File metadata and controls
70 lines (59 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Blender FLIP Fluids Add-on
# Copyright (C) 2026 Ryan L. Guy & Dennis Fassbaender
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
This addon __init__.py file is not the actual FLIP Fluids addon. The purpose of this
file is to inform the user that what they have installed is not an installation file
and is not the correct way to install the FLIP Fluids addon.
"""
bl_info = {
"name" : "FLIP Fluids - This is not an installation file",
"description": "The file you have installed is not an addon. Enable for more info.",
"author" : "The FLIP Fluids Development Team",
"version" : (0, 0, 0),
"blender" : (4, 5, 0),
"location" : "",
"warning" : "",
"wiki_url" : "https://github.com/rlguy/Blender-FLIP-Fluids",
"tracker_url" : "",
"category" : ""
}
import bpy
class FLIPFluidInfoAddonPreferences(bpy.types.AddonPreferences):
bl_idname = __name__.split(".")[0]
def draw(self, context):
column = self.layout.column(align=True)
column.label(text="The file you have installed is not an addon.")
column.label(text="This .zip file only contains the addon and simulation engine source code.")
column.label(text="")
column.label(text="The source code must be built and compiled for your system.")
column.label(text="See the FLIP Fluids GitHub README for instructions.")
column.operator(
"wm.url_open",
text="FLIP Fluids addon GitHub",
).url = "https://github.com/rlguy/Blender-FLIP-Fluids"
column.separator()
column.operator(
"wm.url_open",
text="Try our FLIP Fluids Free Trial",
).url = "https://github.com/rlguy/Blender-FLIP-Fluids/wiki/FLIP-Fluids-Demo-Addon"
column.operator(
"wm.url_open",
text="Purchase the FLIP Fluids addon on Superhive",
).url = "https://superhivemarket.com/products/flipfluids?ref=2685"
def register():
bpy.utils.register_class(FLIPFluidInfoAddonPreferences)
def unregister():
bpy.utils.unregister_class(FLIPFluidInfoAddonPreferences)